Skip to content

Commit 1afadb0

Browse files
authored
Update to version 4.4.0 (#231)
* Add missing poll and delay parameters to first_run * Add str cast for command ID * Update installation instruction for API docs * Update to version 4.4.0 Signed-off-by: Webster Mudge <[email protected]>
1 parent a5c6416 commit 1afadb0

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

docsbuild/antsibull-docs.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ collection_url = {
1717

1818
# The same wildcard rules and formatting rules as for collection_url apply.
1919
collection_install = {
20-
* = "ansible-galaxy collection install git+https://github.com/cloudera-labs/{namespace}.{name}.git"
20+
* = "ansible-galaxy collection install {namespace}.{name}"
2121
}
2222

2323
logging_cfg = {

galaxy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
namespace: cloudera
1818
name: cluster
19-
version: 4.3.1
19+
version: 4.4.0
2020
readme: README.md
2121
authors:
2222
- Webster Mudge @wmudge

plugins/module_utils/cm_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ def wait_command(self, command: ApiCommand, polling: int = 10, delay: int = 5):
492492
poll_count = 0
493493
while command.active:
494494
if poll_count > polling:
495-
self.module.fail_json(msg="Command timeout: " + command.id)
495+
self.module.fail_json(msg="Command timeout: " + str(command.id))
496496
sleep(delay)
497497
poll_count += 1
498498
command = CommandsResourceApi(self.api_client).read_command(command.id)

plugins/modules/cluster.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,9 @@ def process(self):
816816
# If newly created or created by not yet initialize
817817
if not existing or existing.entity_status == "NONE":
818818
first_run = self.cluster_api.first_run(cluster_name=self.name)
819-
self.wait_command(first_run)
819+
self.wait_command(
820+
first_run, polling=self.timeout, delay=self.delay
821+
)
820822
# Start the existing and previously initialized cluster
821823
else:
822824
start = self.cluster_api.start_command(cluster_name=self.name)

0 commit comments

Comments
 (0)