Merge "ironic-agent postinst fails on systemd with no iptables"

This commit is contained in:
Jenkins 2016-04-04 19:35:42 +00:00 committed by Gerrit Code Review
commit 792036ec62

View File

@ -20,7 +20,9 @@ case "$DIB_INIT_SYSTEM" in
fi
;;
systemd)
systemctl disable iptables.service
if [[ $(systemctl --no-pager list-unit-files iptables) =~ 'enabled' ]]; then
systemctl disable iptables.service
fi
systemctl enable $(svc-map ironic-python-agent).service
;;
sysv)