Skip to content

Commit

Permalink
Resolve PR feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Enright <jenright@cloudera.com>
  • Loading branch information
jimright committed Jan 9, 2025
1 parent dc6d405 commit 49a4c3b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
10 changes: 5 additions & 5 deletions plugins/modules/dw_data_visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@
image_version:
description: Version of the Cloudera Data Visualization.
type: str
template_name:
resource_template:
description: The name of the available resource template to use for the Cloudera Data Visualization.
type: str
aliases:
- resource_template
- template_name
wait:
description:
- Flag to enable internal polling to wait for the Data Visualization Instance to achieve the declared state.
Expand Down Expand Up @@ -194,7 +194,7 @@ def __init__(self, module):
self.name = self._get_param("name")
self.config = self._get_param("config")
self.state = self._get_param("state")
self.template_name = self._get_param("template_name")
self.resource_template = self._get_param("resource_template")
self.image_version = self._get_param("image_version")
self.wait = self._get_param("wait")
self.delay = self._get_param("delay")
Expand Down Expand Up @@ -329,7 +329,7 @@ def process(self):
cluster_id=self.cluster["id"],
name=self.name,
config=self.config,
resource_template=self.template_name,
resource_template=self.resource_template,
image_version=self.image_version,
)
if self.wait:
Expand Down Expand Up @@ -358,7 +358,7 @@ def main():
id=dict(type="str"),
name=dict(type="str"),
config=dict(type="dict"),
template_name=dict(type="str", aliases=["resource_template"]),
resource_template=dict(type="str", aliases=["template_name"]),
image_version=dict(type="str"),
state=dict(type="str", choices=["present", "absent"], default="present"),
wait=dict(type="bool", default=True),
Expand Down
18 changes: 9 additions & 9 deletions plugins/modules/dw_virtual_warehouse.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@
- The name of the Virtual Warehouse.
- Required if C(state=present)
type: str
template:
tshirt_size:
description:
- The name of deployment T-shirt size to use.
- The name of deployment T-shirt size, i.e. the deployment template, to use.
- This will determine the number of nodes.
type: str
choices:
Expand All @@ -81,7 +81,7 @@
- medium
- large
aliases:
- tshirt_size
- template
autoscaling:
description:
- Auto-scaling configuration for a Virtual Warehouse
Expand Down Expand Up @@ -287,7 +287,7 @@
cluster_id: example-cluster-id
name: example-virtual-warehouse
type: hive
template: xsmall
tshirt_size: xsmall
autoscaling:
min_nodes: 3
max_nodes: 19
Expand All @@ -301,7 +301,7 @@
cluster_id: example-cluster-id
name: example-virtual-warehouse
type: "hive"
template: "xsmall"
tshirt_size: "xsmall"
enable_sso: true
ldap_groups: ['group1','group2','group3']
common_configs:
Expand Down Expand Up @@ -403,7 +403,7 @@ def __init__(self, module):
self.dbc_id = self._get_param("catalog_id")
self.type = self._get_param("type")
self.name = self._get_param("name")
self.template = self._get_param("template")
self.tshirt_size = self._get_param("tshirt_size")
self.common_configs = self._get_param("common_configs")
self.application_configs = self._get_param("application_configs")
self.ldap_groups = self._get_param("ldap_groups")
Expand Down Expand Up @@ -550,7 +550,7 @@ def process(self):
dbc_id=self.dbc_id,
vw_type=self.type,
name=self.name,
tshirt_size=self.template,
tshirt_size=self.tshirt_size,
autoscaling_min_cluster=self.autoscaling_min_nodes,
autoscaling_max_cluster=self.autoscaling_max_nodes,
autoscaling_auto_suspend_timeout_seconds=self.autoscaling_auto_suspend_timeout_seconds,
Expand Down Expand Up @@ -604,10 +604,10 @@ def main():
catalog_id=dict(type="str", aliases=["dbc_id"]),
type=dict(type="str"),
name=dict(type="str"),
template=dict(
tshirt_size=dict(
type="str",
choices=["xsmall", "small", "medium", "large"],
aliases=["tshirt_size"],
aliases=["template"],
),
autoscaling=dict(
type="dict",
Expand Down

0 comments on commit 49a4c3b

Please sign in to comment.