Comment 1 for bug 2051549

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to stx-puppet (master)

Reviewed: https://review.opendev.org/c/starlingx/stx-puppet/+/907063
Committed: https://opendev.org/starlingx/stx-puppet/commit/2e60f12f29f62d1697c624e1755c9a8185443bc5
Submitter: "Zuul (22348)"
Branch: master

commit 2e60f12f29f62d1697c624e1755c9a8185443bc5
Author: Kyle MacLeod <email address hidden>
Date: Mon Jan 29 08:49:30 2024 -0500

    Fix openrc source when invoked with bash nounset option

    This change fixes the check for the --no-credentials argument to handle
    the case where no argument is present and nounset is active, i.e.:
      set -o nounset

    In this case we default $1 to "" via ${1:-}

    Test Plan:

    Pass:
    - Build and source the /etc/platform/openrc file with and without
      arguments. Test with and without the nounset option.

    Closes-Bug: 2051549

    Change-Id: Iab7f21d26751b024bf58c41b16aac79daa351abf
    Signed-off-by: Kyle MacLeod <email address hidden>