Commit 98ff559f by Martin Joehren

azure - fixed missing return statement

parent 188a13ef
...@@ -223,7 +223,6 @@ def create_virtual_machine(module, azure): ...@@ -223,7 +223,6 @@ def create_virtual_machine(module, azure):
Returns: Returns:
True if a new virtual machine was created, false otherwise True if a new virtual machine was created, false otherwise
""" """
name = module.params.get('name') name = module.params.get('name')
hostname = module.params.get('hostname') or name + ".cloudapp.net" hostname = module.params.get('hostname') or name + ".cloudapp.net"
endpoints = module.params.get('endpoints').split(',') endpoints = module.params.get('endpoints').split(',')
...@@ -302,8 +301,8 @@ def create_virtual_machine(module, azure): ...@@ -302,8 +301,8 @@ def create_virtual_machine(module, azure):
module.fail_json(msg="failed to create the new virtual machine, error was: %s" % str(e)) module.fail_json(msg="failed to create the new virtual machine, error was: %s" % str(e))
deployment = azure.get_deployment_by_name(service_name=name, deployment_name=name) deployment = azure.get_deployment_by_name(service_name=name, deployment_name=name)
return (changed, urlparse(deployment.url).hostname, deployment) return (changed, urlparse(deployment.url).hostname, deployment)
def terminate_virtual_machine(module, azure): def terminate_virtual_machine(module, azure):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment