Skip to content

Commit

Permalink
Adds --assume-yes
Browse files Browse the repository at this point in the history
Fixes #334
  • Loading branch information
John Mitsch committed Jun 18, 2018
1 parent b0de5e6 commit 6fc5225
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bin/satellite-clone
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ def main():
dest="flush_cache",
default=False,
help="clear the fact cache and run playbook")
parser.add_argument("-y",
"--assume-yes",
action="store_true",
dest="assume_yes",
default=False,
help="Assume yes for each question")

args = parser.parse_args()

Expand All @@ -62,6 +68,8 @@ def main():
confirm = True
if args.flush_cache:
ansible_args.append("--flush-cache")
if args.assume_yes:
confirm = True

if not confirm:
yes_or_no("This will initiate satellite-clone. "
Expand Down

0 comments on commit 6fc5225

Please sign in to comment.