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