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

Fixes filtering of lxc container nics options #94

Merged
merged 1 commit into from
Aug 1, 2024

Conversation

Manisha15
Copy link
Contributor

No description provided.

@@ -106,7 +106,10 @@ def self.flatten(nic_hash)
end
nic_value += ',' + Fog::Proxmox::Hash.stringify(options) unless options.empty?
else
nic_value = Fog::Proxmox::Hash.stringify(nic_hash.except(%i[id model macaddr])) unless nic_hash.empty?
Copy link
Contributor

Choose a reason for hiding this comment

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

is there a test for the "flatten" method?

Copy link
Contributor Author

@Manisha15 Manisha15 Jul 30, 2024

Choose a reason for hiding this comment

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

Added the test in foreman_fog_proxmox: theforeman/foreman_fog_proxmox#340

Copy link

@nadjaheitmann nadjaheitmann left a comment

Choose a reason for hiding this comment

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

Tested it and looked fine.

@Manisha15 Manisha15 merged commit 3f27983 into fog:master Aug 1, 2024
2 of 3 checks passed
@Manisha15 Manisha15 deleted the fix_lxc_container_net branch August 1, 2024 08:19
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.

3 participants