Skip to content

Commit

Permalink
Make sure timeout is an integer
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanLorenzo committed Jan 30, 2018
1 parent 4db4c84 commit c97583e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shipitscript/ship_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ def mark_as_shipped(ship_it_instance_config, release_name):
"""
auth = (ship_it_instance_config['username'], ship_it_instance_config['password'])
api_root = ship_it_instance_config['api_root']
timeout_in_seconds = ship_it_instance_config['timeout_in_seconds']
timeout_in_seconds = int(ship_it_instance_config['timeout_in_seconds'])
release_api = shipitapi.Release(auth, api_root=api_root, timeout=timeout_in_seconds)

shipped_at = datetime.utcnow().strftime('%Y-%m-%d %H:%M:%S')
log.info('Mark the release as shipped with {} timestamp'.format(shipped_at))
log.info('Marking the release as shipped with {} timestamp...'.format(shipped_at))
release_api.update(release_name, status='shipped', shippedAt=shipped_at)

0 comments on commit c97583e

Please sign in to comment.