fix creating ip address
@@ -1067,7 +1067,8 @@ class AzureNodeDriver(NodeDriver):
:rtype: :class:`.AzureIPAddress`
"""
- if location is None and self.default_location:
+ if location is None:
+ if self.default_location:
location = self.default_location
else:
raise ValueError("location is required.")
