Skip to content

Commit

Permalink
Code refactor.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jyothis Gireesan Mini committed Feb 26, 2018
1 parent 0bbf43b commit 9eb769f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/oneview_logical_switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,9 @@ def execute_module(self):
elif self.state == 'absent':
return self.resource_absent(resource)
elif self.state == 'updated':
scope_uris = data.get('scopeUris', None)
changed, msg, ansible_facts = self.__update(data, resource)
if 'scopeUris' in data:
scope_uris = data.pop('scopeUris', None)
result = self.resource_scopes_set(dict(ansible_facts=ansible_facts), 'logical_switch', scope_uris)
ansible_facts = result['ansible_facts']
changed = result['changed']
Expand Down

0 comments on commit 9eb769f

Please sign in to comment.