Skip to content

Commit

Permalink
Fix pylint error in product script
Browse files Browse the repository at this point in the history
  • Loading branch information
omad committed Mar 29, 2018
1 parent c901b7c commit cd01b92
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions datacube/scripts/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@


@cli.group(name='product', help='Product commands')
def product():
def product_cli():
pass


@product.command('add')
@product_cli.command('add')
@click.option('--allow-exclusive-lock/--forbid-exclusive-lock', is_flag=True, default=False,
help='Allow index to be locked from other users while updating (default: false)')
@click.argument('files',
Expand All @@ -53,7 +53,7 @@ def add_dataset_types(index, allow_exclusive_lock, files):
continue


@product.command('update')
@product_cli.command('update')
@click.option(
'--allow-unsafe/--forbid-unsafe', is_flag=True, default=False,
help="Allow unsafe updates (default: false)"
Expand Down Expand Up @@ -171,7 +171,7 @@ def _write_tab(products):
'tab': _write_tab,
}

@product.command('list')
@product_cli.command('list')
@click.option('-f', help='Output format',
type=click.Choice(list(LIST_OUTPUT_WRITERS)), default='yaml', show_default=True)
@ui.pass_datacube()
Expand All @@ -194,7 +194,7 @@ def _write_json(product_def):
'json': _write_json,
}

@product.command('show')
@product_cli.command('show')
@click.option('-f', help='Output format',
type=click.Choice(list(SHOW_OUTPUT_WRITERS)), default='yaml', show_default=True)
@click.argument('product_name', nargs=1)
Expand Down

0 comments on commit cd01b92

Please sign in to comment.