Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
69ca9df
Support CDW DBC and VW creation
raju-saravanan Sep 16, 2021
9202f72
Fix class docs
raju-saravanan Sep 16, 2021
9a5dae2
Make vw and dbc modules idempotent
raju-saravanan Sep 16, 2021
92d8568
Make the dbc and vw module idempotent
raju-saravanan Sep 16, 2021
9e82a70
Use started state in wait for state function
raju-saravanan Sep 16, 2021
0edfa73
Fix typo
raju-saravanan Sep 16, 2021
afbcde7
Rename vh and dbc module
raju-saravanan Sep 16, 2021
babd10e
Expand common_config and application_config
raju-saravanan Sep 16, 2021
29b0014
Update module documentation, return values, and logic flow
wmudge Sep 16, 2021
81e8424
WIP of documentation updates, return values and logic flow
wmudge Sep 16, 2021
1a4409e
Add modules to documentation
wmudge Sep 16, 2021
5c19a60
Add missing descriptions to ConfigBlocks
wmudge Sep 16, 2021
3fdcfd8
Tweak fail message
wmudge Sep 16, 2021
1df347f
Update module spec, API doc, and adjust logic flow for singular retur…
wmudge Sep 16, 2021
f2de47f
Add dw_database_catalog_info module
wmudge Sep 16, 2021
c29f82e
Fix debug log bug
wmudge Sep 16, 2021
5f2a37c
Update log messaging
wmudge Sep 16, 2021
eff634f
Update module variable requirements
wmudge Sep 16, 2021
68a96ba
Update deletion states and process
wmudge Sep 16, 2021
73dbad4
Refactor scope to only return cluster details
wmudge Sep 16, 2021
e4a9404
Add dw_virtual_warehouse_info module
wmudge Sep 16, 2021
02749f8
Update parameter naming, aliases, and requirements
wmudge Sep 16, 2021
1302819
Clarify parameter names and aliases for DW modules
wmudge Sep 16, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docsrc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ cloudera.cloud Ansible Collection
df_info <df_info>
dw_cluster <dw_cluster>
dw_cluster_info <dw_cluster_info>
dw_database_catalog <dw_database_catalog>
dw_database_catalog_info <dw_database_catalog_info>
dw_virtual_warehouse <dw_virtual_warehouse>
dw_virtual_warehouse_info <dw_virtual_warehouse_info>
env <env>
env_auth <env_auth>
env_auth_info <env_auth_info>
Expand Down
4 changes: 4 additions & 0 deletions plugins/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ modules employ the underlying SDK contained within the `cdpy` Python package.
| [df_info](./modules/df_info.py) | Gather information about CDP DataFlow services |
| [dw_cluster](./modules/dw_cluster.py) | Create, manage, and destroy CDP Data Warehouse experiences |
| [dw_cluster_info](./modules/dw_cluster_info.py) | Gather information about CDP Data Warehouse experiences |
| [dw_database_catalog](./modules/dw_database_catalog.py) | Create, manage, and destroy CDP Data Warehouse Data Catalogs |
| [dw_database_catalog_info](./modules/dw_database_catalog_info.py) | Gather information about CDP Data Warehouse Data Catalogs |
| [dw_virtual_warehouse](./modules/dw_virtual_warehouse.py) | Create, manage, and destroy CDP Data Warehouse Virtual Warehouses |
| [dw_virtual_warehouse_info](./modules/dw_virtual_warehouse_info.py) | Gather information about CDP Data Warehouse Virtual Warehouses |
| [env](./modules/env.py) | Create, manage, and destroy CDP Environments |
| [env_auth](./modules/env_auth.py) | Set authentication details for CDP Environments |
| [env_auth_info](./modules/env_auth_info.py) | Gather information about CDP Environment authentication details |
Expand Down
7 changes: 4 additions & 3 deletions plugins/module_utils/cdp_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def process_debug(cls, f):
def _impl(self, *args, **kwargs):
result = f(self, *args, **kwargs)
if self.debug:
self.log_out = self.cdpy.get_log()
self.log_out = self.cdpy.sdk.get_log()
self.log_lines.append(self.log_out.splitlines())
return result

Expand Down Expand Up @@ -73,11 +73,12 @@ def _get_param(self, param, default=None):

def _cdp_module_throw_error(self, error: 'CdpError'):
"""Error handler for CDPy SDK"""
self.module.fail_json(msg=str(error.message), error=str(error.__dict__))
self.module.fail_json(msg=str(error.message), error=str(error.__dict__), violations=error.violations)

def _cdp_module_throw_warning(self, warning: 'CdpWarning'):
"""Warning handler for CDPy SDK"""
self.module.warn(warning.message)
if self.module._debug or self.module._verbosity >= 2:
self.module.warn(warning.message)

@staticmethod
def argument_spec(**spec):
Expand Down
Loading