From aa496e36a22fb8054a2e678d609f3128237a4216 Mon Sep 17 00:00:00 2001 From: David Stygstra Date: Sun, 13 Oct 2013 12:35:53 -0400 Subject: [PATCH] Minor style change: removed unnecessary dictionary --- library/net_infrastructure/openvswitch_bridge | 8 ++++---- library/net_infrastructure/openvswitch_port | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/library/net_infrastructure/openvswitch_bridge b/library/net_infrastructure/openvswitch_bridge index 2c87aacd396..7d9824c54bb 100644 --- a/library/net_infrastructure/openvswitch_bridge +++ b/library/net_infrastructure/openvswitch_bridge @@ -92,19 +92,19 @@ class OVSBridge(object): def run(self): '''Make the necessary changes''' - result = {'changed': False} + changed = False try: if self.state == 'absent': if self.exists(): self.delete() - result['changed'] = True + changed = True elif self.state == 'present': if not self.exists(): self.add() - result['changed'] = True + changed = True except Exception, e: self.module.fail_json(msg=str(e)) - self.module.exit_json(**result) + self.module.exit_json(changed=changed) def main(): diff --git a/library/net_infrastructure/openvswitch_port b/library/net_infrastructure/openvswitch_port index 3bde7f9a5ce..bfa7a9caa45 100644 --- a/library/net_infrastructure/openvswitch_port +++ b/library/net_infrastructure/openvswitch_port @@ -95,19 +95,19 @@ class OVSPort(object): def run(self): '''Make the necessary changes''' - result = {'changed': False} + changed = False try: if self.state == 'absent': if self.exists(): self.delete() - result['changed'] = True + changed = True elif self.state == 'present': if not self.exists(): self.add() - result['changed'] = True + changed = True except Exception, e: self.module.fail_json(msg=str(e)) - self.module.exit_json(**result) + self.module.exit_json(changed=changed) def main():