mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Parse additional functions
This commit is contained in:
parent
0074b1eba4
commit
1c79b63d48
@ -134,7 +134,9 @@ def zone_compare(time_zone):
|
|||||||
|
|
||||||
def get_using_network_time():
|
def get_using_network_time():
|
||||||
cmd = 'systemsetup -getusingnetworktime'
|
cmd = 'systemsetup -getusingnetworktime'
|
||||||
return _execute_return_result(cmd)
|
ret = _execute_return_result(cmd)
|
||||||
|
|
||||||
|
return _parse_return(ret)
|
||||||
|
|
||||||
|
|
||||||
def set_using_network_time(enable):
|
def set_using_network_time(enable):
|
||||||
@ -153,7 +155,9 @@ def set_using_network_time(enable):
|
|||||||
|
|
||||||
def get_time_server():
|
def get_time_server():
|
||||||
cmd = 'systemsetup -getnetworktimeserver'
|
cmd = 'systemsetup -getnetworktimeserver'
|
||||||
return _execute_return_result(cmd)
|
ret = _execute_return_result(cmd)
|
||||||
|
|
||||||
|
return _parse_return(ret)
|
||||||
|
|
||||||
|
|
||||||
def set_time_server(time_server):
|
def set_time_server(time_server):
|
||||||
|
Loading…
Reference in New Issue
Block a user