Skip to content

Conversation

@Bryzizzle
Copy link
Member

When there are multiple virtual cloud networks (VCNs) available on an Oracle compartment, pycloudlib will use the newest VCN available, which might not be desired. Currently, the VCN selection functionality is present within the cloud class level, however it cannot be set through the config file. This patch modifies the pycloudlib/oci/cloud.py file to retrieve the vcn_name key from config and use it to force a VCN to use. A commented entry is also included in the pycloudlib.toml.template for reference.

@Bryzizzle Bryzizzle force-pushed the add-vcn-option-in-config branch 2 times, most recently from 66e9a09 to cf53c36 Compare December 12, 2024 20:18
@Bryzizzle Bryzizzle force-pushed the add-vcn-option-in-config branch 4 times, most recently from 9824182 to 7a7ffda Compare January 23, 2025 20:24
… file

When there are multiple virtual cloud networks (VCNs) available on an Oracle compartment,
pycloudlib will use the newest VCN available, which might not be desired. Currently, the
VCN selection functionality is present within the cloud class level, however it cannot be
set through the config file. This patch modifies the `pycloudlib/oci/cloud.py` file to
retrieve the `vcn_name` key from config and use it to force a VCN to use. A commented entry
is also included in the `pycloudlib.toml.template` for reference.
@Bryzizzle Bryzizzle force-pushed the add-vcn-option-in-config branch from 7a7ffda to 01d8b2a Compare January 23, 2025 20:26
@a-dubs
Copy link
Contributor

a-dubs commented Jan 27, 2025

fire in the hole! soooooooooooo glad to finally be able to use this config from my toml file

@a-dubs a-dubs enabled auto-merge (rebase) January 27, 2025 22:05
@a-dubs a-dubs disabled auto-merge January 27, 2025 22:05
Copy link
Contributor

@a-dubs a-dubs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!! this is a good bandaid solution until we do the full configuration overhaul!

@a-dubs a-dubs merged commit fb7af6d into canonical:main Jan 27, 2025
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants