Merge "Default --deployment-user to $SUDO_USER"

This commit is contained in:
Zuul 2018-07-21 03:15:47 +00:00 committed by Gerrit Code Review
commit 8b7d7bcb98
1 changed files with 3 additions and 2 deletions

View File

@ -829,9 +829,10 @@ class Deploy(command.Command):
parser.add_argument(
'--deployment-user',
dest='deployment_user',
default='stack',
default=os.environ.get('SUDO_USER', 'stack'),
help=_('User who executes the tripleo deploy command. '
'Defaults to stack.')
'Defaults to $SUDO_USER. If $SUDO_USER is unset '
'it defaults to stack.')
)
parser.add_argument(
'--heat-container-image', metavar='<HEAT_CONTAINER_IMAGE>',