]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
strip any newlines from the init_system fact 758/head
authorAndrew Schoen <aschoen@redhat.com>
Fri, 6 May 2016 14:14:06 +0000 (09:14 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Fri, 6 May 2016 19:47:45 +0000 (14:47 -0500)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
roles/ceph-common/tasks/facts.yml

index 427dc804de0781823ef415e87b635ea90f9ab0d5..d65fa2f363ae47fbd079aa563a42f29b0773ef17 100644 (file)
@@ -18,7 +18,7 @@
     init_system={{ init_system.content | b64decode }}
 
 - set_fact:
-    use_systemd={{ init_system == 'systemd\n' }}
+    use_systemd={{ init_system.strip() == 'systemd' }}
 
 # NOTE (leseb/jsaintrocc): You are supposed to quote variables
 # that follow colons to avoid confusion with dicts but this