summaryrefslogtreecommitdiffstats
path: root/install/tools
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2014-10-08 16:40:53 +0200
committerMartin Kosek <mkosek@redhat.com>2014-10-09 12:52:31 +0200
commit57c510dcc7a08d908fd55856a735b8dca6684571 (patch)
tree106f0e1b40de6b8918b0b3b581a11cb7a470b4c2 /install/tools
parent7b7567aabfb4954ef6df30f375800e6e93fa5f6a (diff)
downloadfreeipa-57c510dcc7a08d908fd55856a735b8dca6684571.tar.gz
freeipa-57c510dcc7a08d908fd55856a735b8dca6684571.tar.xz
freeipa-57c510dcc7a08d908fd55856a735b8dca6684571.zip
Fix ipactl service ordering
Ipactl sorted service start order as string, which causes service with start order 100 starts before service with start order 30. Patch fixes ipactl to use integers for ordering. Reviewed-By: David Kupka <dkupka@redhat.com>
Diffstat (limited to 'install/tools')
-rwxr-xr-xinstall/tools/ipactl6
1 files changed, 5 insertions, 1 deletions
diff --git a/install/tools/ipactl b/install/tools/ipactl
index 3f0e79867..7a1e41b01 100755
--- a/install/tools/ipactl
+++ b/install/tools/ipactl
@@ -159,7 +159,11 @@ def get_config(dirsrv):
name = entry.single_value['cn']
for p in entry['ipaConfigString']:
if p.startswith('startOrder '):
- order = p.split()[1]
+ try:
+ order = int(p.split()[1])
+ except ValueError:
+ raise IpactlError("Expected order as integer in: %s:%s" % (
+ name, p))
svc_list.append([order, name])
ordered_list = []