Browse Source

Updated custom data changes for instance

vikramdoda 9 years ago
parent
commit
98af7bab4c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      cloudbridge/cloud/providers/azure/services.py

+ 2 - 1
cloudbridge/cloud/providers/azure/services.py

@@ -503,7 +503,8 @@ class AzureInstanceService(BaseInstanceService):
         )
         # #! indicates shell script
         ud = '#cloud-config\n' + user_data \
-            if user_data and not user_data.startswith('#!') else user_data
+            if user_data and not user_data.startswith('#!')\
+            and not user_data.startswith('#cloud-config') else user_data
 
         params = {
             'location': zone_id or self._provider.region_name,