-#!/usr/bin/env python
+#!/usr/bin/env python3
# PATHS to be set by the build system
# this is in ..
for func in dir(api_calls):
try:
f = api_calls.__getattribute__(func)
- if 'group' in list(f.__dict__.keys()):
+ if 'group' in f.__dict__:
api_function_list += [api_calls.__getattribute__(func)]
except:
pass
-#!/usr/bin/env python
+#!/usr/bin/env python3
""" Private Bridge configurator. """
return (-1, None)
### Thierry - 23 Sept 2014
-# regardless of this being shipped on lxc-only or on all nodes,
-# it is safer to check for the availability of the ovs-vsctl command and just print
+# regardless of this being shipped on lxc-only or on all nodes,
+# it is safer to check for the availability of the ovs-vsctl command and just print
# out a warning when it's not there, instead of a nasty traceback
def ovs_available ():
"return True if ovs-vsctl can be run"
logger.log("privatebridge: deleting unused bridge %s" % bridge_name)
ovs_delbridge(bridge_name)
-
-
-
[Service]
Type=oneshot
-ExecStart=/usr/bin/env python /usr/share/NodeManager/conf_files.py
+ExecStart=/usr/bin/env python3 /usr/share/NodeManager/conf_files.py
[Install]
WantedBy=multi-user.target