From 2918dd466ef6a8e526698ca3f1bc7f9b793f2824 Mon Sep 17 00:00:00 2001 From: asteroide Date: Fri, 20 Nov 2015 15:38:46 +0100 Subject: Add an init API function to force the reload of the root intra-extension. Change-Id: Ieee84a30cbd1ee0a5d4ca3359b7f5afbc39afffc --- moonclient/moonclient/intraextension.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'moonclient/moonclient') diff --git a/moonclient/moonclient/intraextension.py b/moonclient/moonclient/intraextension.py index 569a99ff..24286dd9 100644 --- a/moonclient/moonclient/intraextension.py +++ b/moonclient/moonclient/intraextension.py @@ -110,6 +110,21 @@ class IntraExtensionDelete(Command): authtoken=True) +class IntraExtensionInit(Command): + """Initialize the root Intra_Extension (if needed).""" + + log = logging.getLogger(__name__) + + def get_parser(self, prog_name): + parser = super(IntraExtensionInit, self).get_parser(prog_name) + return parser + + def take_action(self, parsed_args): + self.app.get_url("/v3/OS-MOON/intra_extensions/init", + method="GET", + authtoken=True) + + class IntraExtensionShow(ShowOne): """Show detail about one Intra_Extension.""" -- cgit 1.2.3-korg