Merge pull request #45773 from terminalmage/fix-misspelling

Fix misspellings
This commit is contained in:
Nicole Thomas 2018-01-30 08:24:51 -05:00 committed by GitHub
commit 53008ffec7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)