Skip to content

Commit 72e00d9

Browse files
authored
cs_instance: fix AttributeError in get_details (#80)
1 parent 238d2e5 commit 72e00d9

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
bugfixes:
2+
- cs_instance - Fixed custom service offerings usage (https://github.com/ngine-io/ansible-collection-cloudstack/issues/79).

plugins/modules/cs_instance.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,9 @@ def get_details(self):
695695
cpu_speed = self.module.params.get('cpu_speed')
696696
memory = self.module.params.get('memory')
697697
if all([cpu, cpu_speed, memory]):
698+
if details is None:
699+
details = dict()
700+
698701
details.extends({
699702
'cpuNumber': cpu,
700703
'cpuSpeed': cpu_speed,

0 commit comments

Comments
 (0)