diff options
author | 2017-08-22 17:49:55 -0400 | |
---|---|---|
committer | 2017-08-22 17:50:24 -0400 | |
commit | 94cbaca0f5d9447afe9b0f392f248470420422e5 (patch) | |
tree | 2ab7e46a6d63daa1a8a372d199245511b84d3105 /cdap/cdapplugin/cdapcloudify/cdap_plugin.py | |
parent | c272a87b84189f3bf8b3c7287199b816affc9926 (diff) |
[DCAEGEN2-74] merge broker deletion plugin to cdap
Change-Id: If8fecde180c37ae1332e9ef53b9b2e8b17169cbe
Signed-off-by: Tommy Carpenter <tommy@research.att.com>
Diffstat (limited to 'cdap/cdapplugin/cdapcloudify/cdap_plugin.py')
-rw-r--r-- | cdap/cdapplugin/cdapcloudify/cdap_plugin.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cdap/cdapplugin/cdapcloudify/cdap_plugin.py b/cdap/cdapplugin/cdapcloudify/cdap_plugin.py index f5eaf0b..b4d22cd 100644 --- a/cdap/cdapplugin/cdapcloudify/cdap_plugin.py +++ b/cdap/cdapplugin/cdapcloudify/cdap_plugin.py @@ -228,4 +228,11 @@ def app_smart_reconfigure(new_config_template, **kwargs): except Exception as e: raise NonRecoverableError("CDAP Reconfigure error: {0}".format(e)) +@operation +def delete_all_registered_apps(connected_broker_dns_name, **kwargs): + """ + Used in the cdap broker deleter node. + Deletes all registered applications (in the broker) + """ + discovery.delete_all_registered_apps(connected_broker_dns_name, ctx.logger) |