stop and start service

This commit is contained in:
Øyvind Saltvik 2014-05-08 12:16:48 +02:00
parent 51ad28a4d8
commit b81b9b71d9

View File

@ -9,6 +9,7 @@ import os.path
import os
import re
import StringIO
import time
# Import third party libs
import jinja2
@ -1447,7 +1448,9 @@ def apply_network_settings(**settings):
)
return True
else:
return __salt__['service.restart']('networking')
stop = __salt__['service.stop']('networking')
time.sleep(2)
return stop and __salt__['service.start']('networking')
def build_network_settings(**settings):