Skip to content

Commit

Permalink
Don't show user-data when its not sent.
Browse files Browse the repository at this point in the history
Don't show user-data in the instance metadata service
if the instance was not started with any user-data.

LP: #1035317

Change-Id: Idf9b263a39f3b8d75aaf3e6d1debbe283cf9ff64
Signed-off-by: Chuck Short <chuck.short@canonical.com>
  • Loading branch information
Chuck Short committed Aug 22, 2012
1 parent 5dc0039 commit 293cd3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nova/compute/api.py
Expand Up @@ -462,7 +462,7 @@ def _create_instance(self, context, instance_type,
'ephemeral_gb': instance_type['ephemeral_gb'],
'display_name': display_name,
'display_description': display_description or '',
'user_data': user_data or '',
'user_data': user_data,
'key_name': key_name,
'key_data': key_data,
'locked': False,
Expand Down

0 comments on commit 293cd3e

Please sign in to comment.