]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Clean up executable modules
authorZhongyue Luo <zhongyue.nah@intel.com>
Thu, 8 Nov 2012 01:55:15 +0000 (09:55 +0800)
committerZhongyue Luo <zhongyue.nah@intel.com>
Thu, 8 Nov 2012 10:09:01 +0000 (18:09 +0800)
Disabled execution of modules loaded by execution files in bin
Changed file bit mode of modules which are executable

Change-Id: If8a3378c79bb5bfcde1b93066c6b2c0a3d1107ad

quantum/agent/dhcp_agent.py
quantum/agent/l3_agent.py
quantum/debug/shell.py
quantum/plugins/cisco/client/cli.py [changed mode: 0644->0755]
quantum/plugins/cisco/run_tests.py [changed mode: 0644->0755]
quantum/plugins/cisco/services/service_insertion.py [changed mode: 0644->0755]

index bcc3aa9d18ad111a8c7e4bf8aed919f9746facf9..18f9660040e71c9cd8cefadcea6ce6827da12dea 100644 (file)
@@ -544,7 +544,3 @@ def main():
 
     mgr = DhcpAgent(cfg.CONF)
     mgr.run()
-
-
-if __name__ == '__main__':
-    main()
index 41313b119247b480097a0304733b4cbd8ff6267f..32e80fb33fd4d2b44990d9e613a4121cbc8868ea 100644 (file)
@@ -552,7 +552,3 @@ def main():
 
     mgr = L3NATAgent(conf)
     mgr.daemon_loop()
-
-
-if __name__ == '__main__':
-    main()
index f2495d2e0f08d86aca603ebc9d992670e3bf102b..65c9dc85f6c3cd89232cf75180e4e8b3988c73e2 100644 (file)
@@ -79,6 +79,3 @@ class QuantumDebugShell(QuantumShell):
 
 def main(argv=None):
     return QuantumDebugShell(QUANTUM_API_VERSION).run(argv or sys.argv[1:])
-
-if __name__ == "__main__":
-    sys.exit(main())
old mode 100644 (file)
new mode 100755 (executable)
index 7530ddb..333bd0c
@@ -1,3 +1,4 @@
+#!/usr/bin/env python
 # vim: tabstop=4 shiftwidth=4 softtabstop=4
 #
 # Copyright 2011 Cisco Systems, Inc.  All rights reserved.
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
index afd6b60..19af73a
@@ -1,3 +1,4 @@
+#!/usr/bin/env python
 # vim: tabstop=4 shiftwidth=4 softtabstop=4
 #
 # Copyright 2011 Cisco Systems, Inc.  All rights reserved.