Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
Description
In the file libcloud/compute/drivers/azure_arm.py.
There are some functions as ex_create_public_ip function that it needs a location parameter, when this parameter is send, a error happen: "Location is required".
Looking at the code I found with the following:
if location is None and self.default_location: location = self.default_location else: raise ValueError("location is required.")
This does not evaluate a possible parameter, only if the value is None.
I propose:
if location is None and self.default_location: location = self.default_location elif location is not None: location = location else: raise ValueError("location is required.")