Skip to content

Commit

Permalink
build-ami: correctly ingest tag value from config chain (part 2)
Browse files Browse the repository at this point in the history
  • Loading branch information
kislyuk committed Mar 10, 2022
1 parent 74f4462 commit a65a7b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aegea/launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def launch(args):
hkl = hostkey_line(hostnames=[], key=ssh_host_key).strip()
instance_tags = dict(Name=args.hostname, Owner=user_info["iam_username"],
SSHHostPublicKeyPart1=hkl[:255], SSHHostPublicKeyPart2=hkl[255:],
OwnerSSHKeyName=ssh_key_name, **dict(args.tags))
OwnerSSHKeyName=ssh_key_name, **dict(args.tags if args.tags else []))
user_data_args.update(dict(args.cloud_config_data))
launch_spec = dict(ImageId=args.ami.id,
KeyName=ssh_key_name,
Expand Down

0 comments on commit a65a7b2

Please sign in to comment.