Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
add lastUpdate for #30
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxlife committed Feb 18, 2016
1 parent 0498514 commit 0f8b186
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sevenseconds/config/vpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ def configure_vpc(account, region):
with ActionOnExit('Updating VPC..'):
if not account.dry_run:
ami_id = get_base_ami_id(account, region)
tags = [{'Key': 'Name', 'Value': '{}-{}'.format(account.name, region)}]
tags = [{'Key': 'Name', 'Value': '{}-{}'.format(account.name, region)},
{'Key': 'LastUpdate', 'Value': time.strftime('%Y-%m-%dT%H:%M:%S%z')}
]
for key, val in account.config.get('vpc', {}).get('tags', {}).items():
tags.append({
'Key': key,
Expand Down

0 comments on commit 0f8b186

Please sign in to comment.