Skip to content

Commit

Permalink
Merge pull request #36 from ghrcdaac/mlh0079-update-granule-workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
camposeddie authored Dec 1, 2023
2 parents a2d6c81 + 2044c25 commit 11d8c28
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pylot/plugins/cumulus_api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ def generate_parser(subparsers, action_target_dict):
)
target_subparsers = action_parser.add_subparsers(title='target', dest='target', required=True)
for target_k, argument_v in target_v.items():
# TODO: Remove this reversal once we have migrated to Cumulus v18.1.0+
if 'granule_id' in argument_v and 'collection_id' in argument_v:
argument_v.reverse()
plural = ''
for arg in argument_v:
plural.join(f'<{arg}> ')
Expand All @@ -89,7 +92,7 @@ def generate_parser(subparsers, action_target_dict):
f" definition: \'{{\"field_1\": \"value_1\", \"field_2\": \"value_2\"}}\'"
else:
arg_help_text = f'Provide a {argument}'
target_subparser.add_argument(argument, nargs='?', help=arg_help_text)
target_subparser.add_argument(argument, nargs='?', help=arg_help_text, default='')
pass
pass

Expand Down

0 comments on commit 11d8c28

Please sign in to comment.