You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2020/06/06 21:00:29 UTC
[libcloud] 02/05: Reduce indentation and make the code easier to
read.
This is an automated email from the ASF dual-hosted git repository.
tomaz pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git
commit 08bf4762203b946e03731d158c3b2df17d07b6d1
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Sat Jun 6 22:50:57 2020 +0200
Reduce indentation and make the code easier to read.
---
libcloud/compute/drivers/azure_arm.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/libcloud/compute/drivers/azure_arm.py b/libcloud/compute/drivers/azure_arm.py
index de87565..8447713 100644
--- a/libcloud/compute/drivers/azure_arm.py
+++ b/libcloud/compute/drivers/azure_arm.py
@@ -524,8 +524,7 @@ class AzureNodeDriver(NodeDriver):
:return: The newly created node.
:rtype: :class:`.Node`
"""
- if not ex_use_managed_disks:
- if ex_storage_account is None:
+ if not ex_use_managed_disks and ex_storage_account is None:
raise ValueError("ex_use_managed_disks is False, "
"must provide ex_storage_account")
if location is None: