|
9 | 9 |
|
10 | 10 |
|
11 | 11 | @command("regen_derived", |
12 | | - short_help="""Regenerate all derived assets pertaining \ |
13 | | - to a named transformation, or transformation string.""", |
| 12 | + short_help="""Regenerate all derived assets pertaining to a named transformation, or transformation string.""", |
14 | 13 | help=""" |
15 | 14 | \b |
16 | 15 | Regenerate all derived assets pertaining to a specific named transformation, or transformation string. |
|
25 | 24 | @option("-A", "--auto_paginate", is_flag=True, default=False, |
26 | 25 | help="Auto-paginate Admin API calls.") |
27 | 26 | @option("-F", "--force", is_flag=True, |
28 | | - help="Skip initial and auto-paginate confirmation.") |
| 27 | + help="Skip confirmation.") |
29 | 28 | @option("-n", "--max_results", nargs=1, default=10, |
30 | 29 | help="""The maximum number of results to return. |
31 | 30 | Default: 10, maximum: 500.""") |
@@ -63,6 +62,9 @@ def regen_derived(trans_str, eager_notification_url, |
63 | 62 | api_name="admin", |
64 | 63 | auto_paginate=auto_paginate, |
65 | 64 | force=force, return_data=True) |
| 65 | + if trans_details is False: |
| 66 | + return False |
| 67 | + |
66 | 68 | derived_resources = trans_details.get('derived') |
67 | 69 | if not derived_resources: |
68 | 70 | logger.info("No derived assets are using this transformation.") |
|
0 commit comments