From f092f7f03f2a234bdd7431dbbfaed8eadb4695a7 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Fri, 2 Oct 2020 07:15:35 +0200 Subject: [PATCH] don't fail when trying to update compute attributes of a profile Fixes: #997 --- changelogs/fragments/997-compute_profile-update.yaml | 2 ++ plugins/modules/compute_profile.py | 1 + 2 files changed, 3 insertions(+) create mode 100644 changelogs/fragments/997-compute_profile-update.yaml diff --git a/changelogs/fragments/997-compute_profile-update.yaml b/changelogs/fragments/997-compute_profile-update.yaml new file mode 100644 index 0000000000..6d1ebf4392 --- /dev/null +++ b/changelogs/fragments/997-compute_profile-update.yaml @@ -0,0 +1,2 @@ +bugfixes: + - compute_profile - don't fail when trying to update compute attributes of a profile (https://github.com/theforeman/foreman-ansible-modules/issues/997) diff --git a/plugins/modules/compute_profile.py b/plugins/modules/compute_profile.py index f26d37c2f0..2797c67175 100644 --- a/plugins/modules/compute_profile.py +++ b/plugins/modules/compute_profile.py @@ -162,6 +162,7 @@ compute_attribute_foreman_spec = { + 'id': {'invisible': True}, 'compute_resource': {'type': 'entity'}, 'vm_attrs': {'type': 'dict', 'aliases': ['vm_attributes']}, }