summaryrefslogtreecommitdiffstats
path: root/tools/hostbasepush.py
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2011-04-04 08:59:54 -0500
committerSol Jerome <sol.jerome@gmail.com>2011-04-06 19:35:21 -0500
commit50d489f38e18577cb7e75605515d4b8d567aaa52 (patch)
tree3604a9eb742e7be758311f658b7398befde46d39 /tools/hostbasepush.py
parentf1cf457edb2a9552adf82d72541af69487f897f4 (diff)
downloadbcfg2-50d489f38e18577cb7e75605515d4b8d567aaa52.tar.gz
bcfg2-50d489f38e18577cb7e75605515d4b8d567aaa52.tar.bz2
bcfg2-50d489f38e18577cb7e75605515d4b8d567aaa52.zip
tools: PY3K + PEP8 fixes
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'tools/hostbasepush.py')
-rwxr-xr-xtools/hostbasepush.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/hostbasepush.py b/tools/hostbasepush.py
index 61f2e046b..070711c82 100755
--- a/tools/hostbasepush.py
+++ b/tools/hostbasepush.py
@@ -2,15 +2,15 @@
__revision__ = "$Revision: $"
-import Bcfg2.Client.Proxy, os
+import os
+import Bcfg2.Client.Proxy
if not os.getuid() == 0:
- print 'this command must be run as root'
+ print("this command must be run as root")
raise SystemExit
proxy = Bcfg2.Client.Proxy.bcfg2()
-print 'building files...'
+print("building files...")
proxy.run_method('Hostbase.rebuildState', ())
-print 'running bcfg...'
+print("running bcfg...")
os.system('bcfg2 -q -d -v')
-