Skip to content
This repository has been archived by the owner on May 13, 2020. It is now read-only.

Commit

Permalink
add-google-users: --add-to-group-command for completeness
Browse files Browse the repository at this point in the history
  • Loading branch information
mgedmin committed Oct 9, 2012
1 parent 5762cac commit 7e6d7a0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ CHANGES
- Added add-google-users option --add-to-group as a more meaningful alias for
the old --admin-group option.

- Added add-google-users option --add-to-group-command for completeness.


1.4.0 (2012-10-08)
------------------
Expand Down
7 changes: 6 additions & 1 deletion src/cipher/googlepam/addusers.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def addusers(options):
if err.args[0] != 1:
raise
if options.admin_group:
do(ADDADMIN_CMD % user, dry_run=options.dry_run)
do(options.group_command % user, dry_run=options.dry_run)

parser.add_option(
'-C', '--config-file', action='store',
Expand Down Expand Up @@ -151,6 +151,11 @@ def addusers(options):
dest='command', default=ADDUSER_CMD,
help='The command used to create the user (default: %default).')

parser.add_option(
'--add-to-group-command', metavar='COMMAND', action='store',
dest='group_command', default=ADDADMIN_CMD,
help='The command used to add a user to a group (default: %default).')

parser.add_option(
'--dry-run', action='store_true',
dest='dry_run', default=False,
Expand Down

0 comments on commit 7e6d7a0

Please sign in to comment.