Skip to content
Snippets Groups Projects
Commit 8ff41dd9 authored by jurgenhaas's avatar jurgenhaas
Browse files

Bug fix for Ansible 2.x compatibility

parent 191fe2c1
No related branches found
No related tags found
No related merge requests found
...@@ -141,7 +141,7 @@ class ActionModule(ActionBase): ...@@ -141,7 +141,7 @@ class ActionModule(ActionBase):
def find_floating_ip(self): def find_floating_ip(self):
self.load_ips() self.load_ips()
selected = self.args.get('ip', False) selected = self._task.args.get('ip', False)
ips = [] ips = []
for block in self.ips: for block in self.ips:
for ip in self.ips[block]: for ip in self.ips[block]:
...@@ -193,7 +193,7 @@ class ActionModule(ActionBase): ...@@ -193,7 +193,7 @@ class ActionModule(ActionBase):
def move_ip(self): def move_ip(self):
display.vv("Moving IP ...") display.vv("Moving IP ...")
target = self.args.get('target', False) target = self._task.args.get('target', False)
if not target: if not target:
raise ae("'target' is a required argument.") raise ae("'target' is a required argument.")
targethost = self.find_host(target) targethost = self.find_host(target)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment