Explorar el Código

Fix py27 build issue

vikramdoda hace 9 años
padre
commit
2b3fd79ca4
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      cloudbridge/cloud/providers/azure/resources.py

+ 3 - 3
cloudbridge/cloud/providers/azure/resources.py

@@ -525,7 +525,7 @@ class AzureVolume(BaseVolume):
     @property
     @property
     def attachments(self):
     def attachments(self):
         """
         """
-        Azure doesn’t have option to specify the device name
+        Azure does not have option to specify the device name
         while attaching disk to VM. It is automatically populated
         while attaching disk to VM. It is automatically populated
         and is not returned. As a result this method ignores
         and is not returned. As a result this method ignores
         the device name parameter and passes None
         the device name parameter and passes None
@@ -1325,7 +1325,7 @@ class AzureInstance(BaseInstance):
         Documentation for create image available at
         Documentation for create image available at
         https://docs.microsoft.com/en-us/azure/virtual-machines/linux/capture-image  # noqa
         https://docs.microsoft.com/en-us/azure/virtual-machines/linux/capture-image  # noqa
         In azure, need to deprovision the VM before capturing.
         In azure, need to deprovision the VM before capturing.
-        To deprovision, login to VM and execute waagent deprovision command.
+        To deprovision, login to VM and execute waagent deprovision command.
         To do this programmatically, using pysftp to ssh into the VM
         To do this programmatically, using pysftp to ssh into the VM
         and executing deprovision command.
         and executing deprovision command.
         To SSH into the VM programmatically, need pass private key file path,
         To SSH into the VM programmatically, need pass private key file path,
@@ -1336,7 +1336,7 @@ class AzureInstance(BaseInstance):
         if not self._state == 'VM generalized':
         if not self._state == 'VM generalized':
             if not self._state == 'VM running':
             if not self._state == 'VM running':
                 self._provider.azure_client.start_vm(self.id)
                 self._provider.azure_client.start_vm(self.id)
-                time.sleep(10)
+                time.sleep(10)  # Some time is required
                 self._get_network_attributes()
                 self._get_network_attributes()
 
 
             # if private_key_path:
             # if private_key_path: