Skip to content

Commit

Permalink
This fixes the bug I had with my server fibonacci demo. Woops.
Browse files Browse the repository at this point in the history
When I added --delta support, I forgot that no --delta needs a default.
  • Loading branch information
purpleidea committed Nov 5, 2013
1 parent 3a69cfc commit df3d004
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/again/again.py.erb
Expand Up @@ -79,7 +79,7 @@ def is_locked():
return os.path.isfile(LOCKFILE)

parser = argparse.ArgumentParser(description="Utility used by Puppet Exec['again'].")
parser.add_argument('--delta', dest='delta', action='store', type=int, required=False)
parser.add_argument('--delta', dest='delta', action='store', type=int, required=False, default=0)
# start delta timer immediately, instead of waiting till puppet finishes...
parser.add_argument('--start-timer-now', dest='start_timer_now', action='store_true', default=False, required=False)
args = parser.parse_args()
Expand Down

0 comments on commit df3d004

Please sign in to comment.