mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #45773 from terminalmage/fix-misspelling
Fix misspellings
This commit is contained in:
commit
53008ffec7
1 changed files with 4 additions and 4 deletions
|
@ -52,9 +52,9 @@ class _GSettings(object):
|
|||
self.HOME = None
|
||||
|
||||
@property
|
||||
def gestting_command(self):
|
||||
def gsetting_command(self):
|
||||
'''
|
||||
return the command to run the gesttings binary
|
||||
return the command to run the gsettings binary
|
||||
'''
|
||||
if salt.utils.which_bin(['dbus-run-session']):
|
||||
cmd = ['dbus-run-session', '--', 'gsettings']
|
||||
|
@ -74,7 +74,7 @@ class _GSettings(object):
|
|||
log.info('User does not exist')
|
||||
return False
|
||||
|
||||
cmd = self.gestting_command + ['get', str(self.SCHEMA), str(self.KEY)]
|
||||
cmd = self.gsetting_command + ['get', str(self.SCHEMA), str(self.KEY)]
|
||||
environ = {}
|
||||
environ['XDG_RUNTIME_DIR'] = '/run/user/{0}'.format(uid)
|
||||
result = __salt__['cmd.run_all'](cmd, runas=user, env=environ, python_shell=False)
|
||||
|
@ -102,7 +102,7 @@ class _GSettings(object):
|
|||
result['stdout'] = 'User {0} does not exist'.format(user)
|
||||
return result
|
||||
|
||||
cmd = self.gestting_command + ['set', str(self.SCHEMA), str(self.KEY), str(value)]
|
||||
cmd = self.gsetting_command + ['set', str(self.SCHEMA), str(self.KEY), str(value)]
|
||||
environ = {}
|
||||
environ['XDG_RUNTIME_DIR'] = '/run/user/{0}'.format(uid)
|
||||
result = __salt__['cmd.run_all'](cmd, runas=user, env=environ, python_shell=False)
|
||||
|
|
Loading…
Add table
Reference in a new issue