Skip to content

Commit

Permalink
[bug] sort lsudo command list (Closes #108)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ignace Mouzannar authored and Ignace Mouzannar committed Jul 17, 2015
1 parent a9b6c55 commit ee449ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lshell/checkconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,9 @@ def get_config_user(self):
self.conf['sudo_commands'] = \
[x for x in self.conf['allowed'] if x not in exclude]

# sort lsudo commands
self.conf['sudo_commands'].sort()



def account_lock(self, user, lock_counter, check=None):
Expand Down

0 comments on commit ee449ae

Please sign in to comment.