mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
* ovrit_cluster: fix for CPU arch entity #37425 * Corrected Indentation * Condition to check if `architecture` is defined
This commit is contained in:
committed by
ansibot
parent
ec2e027980
commit
7a4c3e5cad
@@ -485,7 +485,9 @@ class ClustersModule(BaseModule):
|
||||
name=self.param('network'),
|
||||
) if self.param('network') else None,
|
||||
cpu=otypes.Cpu(
|
||||
architecture=self.param('cpu_arch'),
|
||||
architecture=otypes.Architecture(
|
||||
self.param('cpu_arch')
|
||||
) if self.param('cpu_arch') else None,
|
||||
type=self.param('cpu_type'),
|
||||
) if (
|
||||
self.param('cpu_arch') or self.param('cpu_type')
|
||||
|
||||
Reference in New Issue
Block a user