FAM-902 Style fixes

Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/23ec91f4
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/23ec91f4
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/23ec91f4

Branch: refs/heads/trunk
Commit: 23ec91f455fee703b730099544a81cc8fb8d8557
Parents: 9866138
Author: mermoldy <s.ba...@scalr.com>
Authored: Wed May 24 15:00:25 2017 +0300
Committer: Anthony Shaw <anthonys...@apache.org>
Committed: Fri Aug 11 14:59:31 2017 +1000

----------------------------------------------------------------------
 libcloud/compute/drivers/azure_arm.py | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/23ec91f4/libcloud/compute/drivers/azure_arm.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/azure_arm.py 
b/libcloud/compute/drivers/azure_arm.py
index a225429..37c8815 100644
--- a/libcloud/compute/drivers/azure_arm.py
+++ b/libcloud/compute/drivers/azure_arm.py
@@ -902,7 +902,7 @@ class AzureNodeDriver(NodeDriver):
             a unique LUN.
         :type ex_lun: ``int``
 
-        :param ex_vhd_uri: Attach old-style un-managed disk from VHD
+        :param ex_vhd_uri: Attach old-style unmanaged disk from VHD
             blob. (optional)
         :type ex_vhd_uri: ``str``
 
@@ -931,15 +931,16 @@ class AzureNodeDriver(NodeDriver):
                     "'ex_vhd_resource_group' of the VHD blob is not 
specified.")
 
             # attach new or existing unmanaged disk
-            is_vhd_exists = self._ex_is_vhd_exists(
+            vhd_exists = self._ex_vhd_exists(
                 ex_vhd_resource_group,
                 ex_vhd_uri)
             new_disk = {
                 'lun': ex_lun,
                 'name': 'unmanaged-vol-{}'.format(str(uuid.uuid4())[0:8]),
-                'createOption': 'attach' if is_vhd_exists else 'empty',
+                'createOption': 'attach' if vhd_exists else 'empty',
                 'vhd': {'uri': ex_vhd_uri},
-                'diskSizeGB': volume.size}
+                'diskSizeGB': volume.size
+            }
         else:
             # attach existing managed disk
             new_disk = {
@@ -1912,7 +1913,7 @@ class AzureNodeDriver(NodeDriver):
         except ObjectDoesNotExistError:
             return True
 
-    def _ex_is_vhd_exists(self, resource_group, vhd_uri):
+    def _ex_vhd_exists(self, resource_group, vhd_uri):
         """
         Check if VHD by given ``vhd_uri`` exists
 

Reply via email to