Skip federated resources check in local mode
@@ -1784,6 +1784,17 @@ class AbstractResource(ResourcePermissionsMixin):
istorage = self.get_irods_storage()
errors = []
+ # skip federated resources if not configured to handle these
+ if self.is_federated and not settings.REMOTE_USE_IRODS:
+ msg = "check_irods_files: skipping checking federated resource {}"\
+ .format(self.short_id)
+ if echo_errors:
+ print(msg)
+ if log_errors:
+ logger.info(msg)
+
+ else:
+
# Step 1: does every file here refer to an existing file in iRODS?
for f in self.files.all():
if not istorage.exists(f.storage_path):
