Merge "Make ansible ask for sudo password"

This commit is contained in:
Zuul 2020-07-24 18:36:09 +00:00 committed by Gerrit Code Review
commit c081db93b3
1 changed files with 1 additions and 2 deletions

View File

@ -242,8 +242,7 @@ def check_for_root():
'[ $(whoami) == root ] || sudo --non-interactive true',
shell=True, stderr=subprocess.DEVNULL)
except subprocess.CalledProcessError:
# TODO(dtantsur): tell ansible to ask for password
sys.exit('Sudo without password is required for Bifrost')
COMMON_PARAMS.append('--ask-become-pass')
def main():