Revision d56fa78c snf-cyclades-app/synnefo/quotas/management/commands/enforce-resources-cyclades.py
b/snf-cyclades-app/synnefo/quotas/management/commands/enforce-resources-cyclades.py | ||
---|---|---|
78 | 78 |
|
79 | 79 |
def confirm(self): |
80 | 80 |
self.stdout.write("Confirm? [y/N] ") |
81 |
response = raw_input() |
|
81 |
try: |
|
82 |
response = raw_input() |
|
83 |
except EOFError: |
|
84 |
response = "ABORT" |
|
82 | 85 |
if string.lower(response) not in ['y', 'yes']: |
83 | 86 |
self.stderr.write("Aborted.\n") |
84 | 87 |
exit() |
Also available in: Unified diff