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

link hosts and vms by lower case MAC + fix 500 #223

Merged
merged 2 commits into from Oct 27, 2022

Conversation

Hedius
Copy link
Contributor

@Hedius Hedius commented Mar 9, 2022

Proxmox 7.1-10
Lastest fog_proxmox
Latest stable foreman: 3.1.2

I've found the following problem while linking an existing host to a VM

The puppet facts store the MAC in lower case.

The proxmox compute resource (this plugin) pulls the MAC in upper case from the Proxmox API (or Proxmox provides it in upper case)

Therefore, it is not possible to link an existing host with a proxmox host. (Since the comparison is case-sensitive)

The attached commit converts both values to lower case before attempting to associate the different objects. (Works again)

Furthermore, d30e1c4 converts the identity (int) to a string to fix a 500 when clicking on the “Associate VMs” button. Similar to #220

@Hedius
Copy link
Contributor Author

Hedius commented Mar 9, 2022

Update:
Furthermore, d30e1c4 converts the identity (int) to a string to fix a 500 when clicking on the “Associate VMs” button. Similar to #220

@Hedius Hedius changed the title link hosts and vms by lower case MAC link hosts and vms by lower case MAC + fix 500 Mar 9, 2022
@ekohl ekohl merged commit 4e3023c into theforeman:master Oct 27, 2022
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.

None yet

2 participants