hobo: correctly import and setup publisher for --redeploy command (#9599)

This commit is contained in:
Frédéric Péters 2016-01-12 11:28:03 +01:00
parent 143783b334
commit 9da49b398f
1 changed files with 3 additions and 1 deletions

View File

@ -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')