Revision 2b745492 snf-astakos-app/astakos/im/management/commands/project-control.py
b/snf-astakos-app/astakos/im/management/commands/project-control.py | ||
---|---|---|
73 | 73 |
dest='terminate_expired', |
74 | 74 |
default=False, |
75 | 75 |
help="Terminate all expired projects"), |
76 |
make_option('--message', '-m', |
|
77 |
dest='message', |
|
78 |
metavar='<msg>', |
|
79 |
help=("Specify reason of action, " |
|
80 |
"e.g. when denying a project")), |
|
76 | 81 |
) |
77 | 82 |
|
78 | 83 |
def handle(self, *args, **options): |
79 | 84 |
|
85 |
message = options['message'] |
|
86 |
|
|
80 | 87 |
pid = options['terminate'] |
81 | 88 |
if pid is not None: |
82 | 89 |
self.run_command(terminate, pid) |
... | ... | |
99 | 106 |
|
100 | 107 |
appid = options['deny'] |
101 | 108 |
if appid is not None: |
102 |
self.run_command(deny_application, appid) |
|
109 |
self.run_command(deny_application, appid, message)
|
|
103 | 110 |
return |
104 | 111 |
|
105 | 112 |
if options['check_expired']: |
Also available in: Unified diff