Skip to content

Commit

Permalink
Update cm_service_info to use common utilities for collection and par…
Browse files Browse the repository at this point in the history
…sing of Cloudera Manager service

Signed-off-by: Webster Mudge <[email protected]>
  • Loading branch information
wmudge committed Jan 10, 2025
1 parent c882974 commit b57bb9f
Show file tree
Hide file tree
Showing 2 changed files with 323 additions and 125 deletions.
14 changes: 0 additions & 14 deletions plugins/modules/cm_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -618,21 +618,7 @@ def process(self):

# Discover the CM service and retrieve its configured dependents
try:
# TODO This is only used once... so revert
current = read_cm_service(self.api_client)
# current = service_api.read_service()
# if current is not None:
# # Gather the service-wide configuration
# current.config = service_api.read_service_config()

# # Gather each role config group configuration
# for rcg in current.role_config_groups:
# rcg.config = rcg_api.read_config(role_config_group_name=rcg.name)

# # Gather each role configuration
# for role in current.roles:
# role.config = role_api.read_role_config(role_name=role.name)

except ApiException as ex:
if ex.status != 404:
raise ex
Expand Down
Loading

0 comments on commit b57bb9f

Please sign in to comment.