def _timedatectl():
 ret = __salt__['cmd.run_all'](['timedatectl'], python_shell=False)
 if (ret['retcode'] != 0):
  msg = 'timedatectl failed: {0}'.format(ret['stderr'])
  raise CommandExecutionError(msg)
 return ret

def _timedatectl ( ) : ret = __salt__ [ 'cmd.run_all' ] ( [ 'timedatectl' ] , python_shell = False ) if ( ret [ 'retcode' ] != 0 ) : msg = 'timedatectl failed: {0}' . format ( ret [ 'stderr' ] ) raise CommandExecutionError ( msg ) return ret
get the output of timedatectl .