Skip to content
Snippets Groups Projects

fixing subspace file creation

Merged Charlotte Hausman requested to merge relocatable_workflows into main
2 files
+ 7
6
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -33,6 +33,7 @@ class CapoInjector:
if RemoteProcessingSites.NAASC.value in self.request.argument:
system = current.split("-")[1]
remote_profile = "naasc-" + system
logger.info(f"profile for request: {remote_profile}")
return remote_profile
return current
@@ -94,10 +95,10 @@ class CapoInjector:
path = self.dir_path / subspace.filename
path.write_bytes(subspace.content)
logger.info(f"Writing capo subspace file to {self.dir_path}")
logger.info(f"Writing capo subspace file to {self.dir_path.__str__()}")
def clear_subspace(self):
logger.info(f"Clearing capo subspace file from {self.dir_path}...")
logger.info(f"Clearing capo subspace file from {self.dir_path.__str__()}...")
for file in os.listdir(self.dir_path):
if file.endswith(".properties"):
Path.unlink(self.dir_path / file)
Loading