From c4ac19a47c9719b628906c3d2ff1a628760942a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Tue, 12 Jan 2016 11:28:03 +0100 Subject: [PATCH] hobo: correctly import and setup publisher for --redeploy command (#9599) --- wcs/ctl/check_hobos.py | 4 +++- wcs/ctl/hobo_notify.py | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/wcs/ctl/check_hobos.py b/wcs/ctl/check_hobos.py index a302a76..303bd9b 100644 --- a/wcs/ctl/check_hobos.py +++ b/wcs/ctl/check_hobos.py @@ -46,9 +46,11 @@ class CmdCheckHobos(Command): ]) def execute(self, base_options, sub_options, args): + import publisher + publisher.WcsPublisher.configure(self.config) if sub_options.redeploy: sub_options.ignore_timestamp = True - for tenant in os.listdir(WcsPublisher.APP_DIR): + for tenant in os.listdir(publisher.WcsPublisher.APP_DIR): if tenant.endswith('.invalid'): continue hobo_json_path = os.path.join(tenant, 'hobo.json') diff --git a/wcs/ctl/hobo_notify.py b/wcs/ctl/hobo_notify.py index 188b5c9..7014c7d 100644 --- a/wcs/ctl/hobo_notify.py +++ b/wcs/ctl/hobo_notify.py @@ -29,6 +29,7 @@ class CmdHoboNotify(Command): name = 'hobo_notify' def execute(self, base_options, sub_options, args): + print 'HELLO WORLD' self.base_options = base_options if sub_options.extra: if not self.config.has_section('extra'): @@ -37,6 +38,8 @@ class CmdHoboNotify(Command): self.config.set('extra', 'cmd_line_extra_%d' % i, extra) notification = self.load_notification(args) + print 'notification:' + print notification if not self.check_valid_notification(notification): sys.exit(1) import publisher -- 2.7.0.rc3