Skip to content

[v1] Add ParseOption type to made clouds.Parse() more usable for optional With* funcs#2917

Merged
EmilienM merged 2 commits intov1from
bp-v1-ef5fd4a-5d62d9c
Feb 13, 2024
Merged

[v1] Add ParseOption type to made clouds.Parse() more usable for optional With* funcs#2917
EmilienM merged 2 commits intov1from
bp-v1-ef5fd4a-5d62d9c

Conversation

@gophercloud-backport-bot
Copy link
Copy Markdown

Backport: #2914

So that makes easier to have conditional With like that:

https://github.com/sardinasystems/fleeting-plugin-openstack/blob/90c744fc9ee23d8a18dad96f2a677a9d1a54222c/provider.go#L44-L52

Fixes #2913

In addition it fixes search for default /etc/openstack/clouds.yaml file.

That fix following error returned by Parse():
```
Failed to parse clouds.yaml: yaml: input error: read /etc/openstack: is a directory
```

Signed-off-by: Vladimir Ermakov <vooon341@gmail.com>
Fix #2913

Signed-off-by: Vladimir Ermakov <vooon341@gmail.com>
@pierreprinetti pierreprinetti changed the title [v1] v2: Add ParseOption type to made clouds.Parse() more usable for optional With* funcs [v1] Add ParseOption type to made clouds.Parse() more usable for optional With* funcs Feb 13, 2024
@github-actions github-actions bot added the semver:minor Backwards-compatible change label Feb 13, 2024
@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 77.271%. remained the same
when pulling 018a079 on bp-v1-ef5fd4a-5d62d9c
into e3f126e on v1.

@EmilienM EmilienM merged commit 195d9f6 into v1 Feb 13, 2024
@EmilienM EmilienM deleted the bp-v1-ef5fd4a-5d62d9c branch February 13, 2024 13:15
@mandre mandre mentioned this pull request Mar 6, 2024
@pierreprinetti pierreprinetti added the v1 This PR targets v1 label Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver:minor Backwards-compatible change v1 This PR targets v1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants