summaryrefslogtreecommitdiffstats
path: root/contrib/create_service.py
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/create_service.py')
-rwxr-xr-xcontrib/create_service.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/create_service.py b/contrib/create_service.py
index 1da956a..54714df 100755
--- a/contrib/create_service.py
+++ b/contrib/create_service.py
@@ -21,7 +21,7 @@ from app import app
if __name__ == "__main__":
if len(sys.argv) < 2:
- print("Usage: %s name" % sys.argv[0])
+ print(("Usage: %s name" % sys.argv[0]))
exit(-1)
name = sys.argv[1]
@@ -36,7 +36,7 @@ if __name__ == "__main__":
try:
data = service.connection.search_s(dn, ldap.SCOPE_SUBTREE)
- print("'%s' already exists as service." % name)
+ print(("'%s' already exists as service." % name))
except ldap.NO_SUCH_OBJECT:
attr = [
@@ -45,6 +45,6 @@ if __name__ == "__main__":
]
service.connection.add_s(dn, attr)
- print("Successfully created '%s' as a new service." % name)
+ print(("Successfully created '%s' as a new service." % name))
service._unbind()