mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
stop and start service
This commit is contained in:
parent
51ad28a4d8
commit
b81b9b71d9
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user