Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Fix application credential support in env.rc #1646

Merged
merged 1 commit into from
Aug 18, 2023

Commits on Aug 17, 2023

  1. Fix application credential support in env.rc

    This allows users to utilise authentication via application
    credentials again rather than expecting them to use passwords.
    
    Specifically, users that use a cloud.conf with application credentials
    would run into an error such as:
    
    ```
    $ source ./templates/env.rc ~/.config/openstack/clouds.yaml example
    Error: Value for env variable 'PASSWORD' not provided in env()
    ```
    
    with the resulting `CAPO_OPENSTACK_CLOUD_YAML_SELECTED_CLOUD_B64`
    environment variable containing content similar to:
    
    ```
    clouds:
      example:
    ```
    
    This commit only includes the password if it does indeed have a value,
    to ensure that the cloud config file can be rendered correctly.
    wwentland committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    07ee324 View commit details
    Browse the repository at this point in the history