Skip to content

Commit

Permalink
Merge pull request #60 from deepmind/pattern_requires_target
Browse files Browse the repository at this point in the history
"inventory --pattern" requires "--target_name" to be specified
  • Loading branch information
ramaro authored Apr 6, 2018
2 parents f57cd8d + fee97c5 commit 41d2722
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kapitan/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ def main():
secrets_reveal=args.reveal, gpg_obj=gpg_obj)

elif cmd == 'inventory':
if args.pattern and args.target_name == '':
parser.error("--pattern requires --target_name")
try:
logging.basicConfig(level=logging.INFO, format="%(message)s")
inv = inventory_reclass(args.inventory_path)
Expand Down

0 comments on commit 41d2722

Please sign in to comment.