Skip to content

Commit

Permalink
Add --scalyr-key option to the update subcommand
Browse files Browse the repository at this point in the history
By popular request.
  • Loading branch information
a1exsh committed Nov 24, 2017
1 parent ccb7693 commit 1704043
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions planb/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ def create(regions: list,
@click.option('--docker-image', type=str)
@click.option('--taupage-ami-id', type=str)
@click.option('--instance-type', type=str)
@click.option('--scalyr-key')
@click.option('--sns-topic', help=sns_topic_help)
@click.option('--sns-email', help=sns_email_help)
def update(cluster_name: str,
Expand All @@ -99,6 +100,7 @@ def update(cluster_name: str,
docker_image: str,
taupage_ami_id: str,
instance_type: str,
scalyr_key: str,
sns_topic: str,
sns_email: str):

Expand Down
6 changes: 6 additions & 0 deletions planb/update_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,15 @@ def build_run_instances_params(
}
}
}

docker_image = options.get('docker_image')
if docker_image:
user_data_changes['source'] = docker_image

scalyr_key = options.get('scalyr_key')
if scalyr_key:
user_data_changes['scalyr_account_key'] = scalyr_key

params['UserData'].update(user_data_changes)
return params

Expand Down

0 comments on commit 1704043

Please sign in to comment.