diff --git a/fabfed/provider/janus/janus_provider.py b/fabfed/provider/janus/janus_provider.py index b48e7b92..213da29c 100644 --- a/fabfed/provider/janus/janus_provider.py +++ b/fabfed/provider/janus/janus_provider.py @@ -83,9 +83,15 @@ def _validate_resource(self, resource: dict): assert resource.get(Constants.LABEL) assert resource.get(Constants.RES_TYPE) in Constants.RES_SUPPORTED_TYPES assert resource.get(Constants.RES_NAME_PREFIX) + creation_details = resource[Constants.RES_CREATION_DETAILS] + + # count was set to zero + if not creation_details['in_config_file']: + # TODO HANDLE UNINSTALL OF JANUS ON NODES ... + return + assert resource.get(Constants.RES_COUNT, 1) assert resource.get(Constants.RES_IMAGE) - self.logger.info(f"Validated:OK Resource={self.name} using {self.label}") def do_add_resource(self, *, resource: dict):