diff options
author | Sol Jerome <sol.jerome@gmail.com> | 2011-04-04 08:59:54 -0500 |
---|---|---|
committer | Sol Jerome <sol.jerome@gmail.com> | 2011-04-06 19:35:21 -0500 |
commit | 50d489f38e18577cb7e75605515d4b8d567aaa52 (patch) | |
tree | 3604a9eb742e7be758311f658b7398befde46d39 /tools/hostbasepush.py | |
parent | f1cf457edb2a9552adf82d72541af69487f897f4 (diff) | |
download | bcfg2-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-x | tools/hostbasepush.py | 10 |
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') - |