Skip to content
Snippets Groups Projects
Commit 7dece984 authored by sveseli's avatar sveseli
Browse files

make local group manipulation instance methods

parent 1cf630c8
No related branches found
No related tags found
No related merge requests found
...@@ -213,15 +213,13 @@ class LdapLinuxPlatformUtility: ...@@ -213,15 +213,13 @@ class LdapLinuxPlatformUtility:
cmd = '%s %s' % (cls.GROUPADD_CMD, name) cmd = '%s %s' % (cls.GROUPADD_CMD, name)
cls.executeSudoCommand(cmd) cls.executeSudoCommand(cmd)
@classmethod def addLocalUserToGroup(self, username, groupName):
def addLocalUserToGroup(cls, username, groupName):
""" Add local user to group. """ """ Add local user to group. """
cls.addUserToGroup(username, groupName) self.addUserToGroup(username, groupName)
@classmethod def deleteLocalUserFromGroup(self, username, groupName):
def deleteLocalUserFromGroup(cls, username, groupName):
""" Remove local user from group. """ """ Remove local user from group. """
cls.deleteUserFromGroup(username, groupName) self.deleteUserFromGroup(username, groupName)
def getGroupInfo(self, groupName): def getGroupInfo(self, groupName):
""" Get given group info. """ """ Get given group info. """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment