Fix misspellings

f49d0a0 had some misspellings that were not caught before it was merged
This commit is contained in:
Erik Johnson 2018-01-29 17:38:15 -06:00
parent 454ed23f62
commit 0a45f998fe
No known key found for this signature in database
GPG key ID: 5E5583C437808F3F

View file

@ -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)