Comment 2 for bug 2001553

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

Reviewed: https://review.opendev.org/c/starlingx/fault/+/869102
Committed: https://opendev.org/starlingx/fault/commit/ca8be6b8661174268a597e78e422d97e03a9f36b
Submitter: "Zuul (22348)"
Branch: master

commit ca8be6b8661174268a597e78e422d97e03a9f36b
Author: Enzo Candotti <email address hidden>
Date: Tue Jan 3 15:32:29 2023 -0300

    Fix fm command bash dynamic completion

    For dynamic bash completion, instead of using the legacy
    /etc/bash_completiond.d, the current bash-completion can use a
    dynamic mechanism in which the customized completion is called
    upon completion activation.
    The new location that is already pointed by the .bashrc file,
    also engaged by the /etc/bash_completion, is
    /usr/share/bash-completion/completions.

    However, the bash file was placed under a subfolder with the
    name of the command which is not necessary since the file already
    contains the command name.
    Also, the proper file name shall contain .bash extension.

    Closes-Bug: 2001553

    Test Plan:
    PASS: Build python-fmclient package.
    PASS: Build Debian image and install it successfully.
    Verify fm.bash is installed under /usr/share/bash-completion/completions
    PASS: Verify bash completion is working as expected:

    Signed-off-by: Enzo Candotti <email address hidden>
    Change-Id: I3b796d26633459b98d7555e48e0bf5ea01c630d3