Use ansible_user only if ANSIBLE_REMOTE_USER is unset
In a non-standalone deployment config-download is called
with the ANSIBLE_REMOTE_USER defined. This variable is
undefined when using standalone, which is what caused the
related bug. Unfortunately the fix for the related bug
introduced the bug this patch closes. This patch should
work for both non-standalone and standalone deployments.
Reviewed: https:/ /review. opendev. org/742291 /git.openstack. org/cgit/ openstack/ tripleo- ansible/ commit/ ?id=42b7a23f048 31e360c89d74238 54b11090626629
Committed: https:/
Submitter: Zuul
Branch: stable/train
commit 42b7a23f04831e3 60c89d7423854b1 1090626629
Author: John Fulton <email address hidden>
Date: Tue Jul 21 21:27:18 2020 +0000
Use ansible_user only if ANSIBLE_REMOTE_USER is unset
In a non-standalone deployment config-download is called
with the ANSIBLE_REMOTE_USER defined. This variable is
undefined when using standalone, which is what caused the
related bug. Unfortunately the fix for the related bug
introduced the bug this patch closes. This patch should
work for both non-standalone and standalone deployments.
Change-Id: Ie7234bf113204e 8cf847257554b88 b899b45d5ee 07c277b1f6c20fa 7af116eaf7)
Related-Bug: #1886497
Closes-Bug: #1887708
(cherry picked from commit 67c4a4f58e9b8af