Fixes: https://tracker.ceph.com/issues/51829
Signed-off-by: Adam King <adking@redhat.com>
# we pick up the file from where the orchestrator placed it - otherwise we'll
# copy it to the binary location for this cluster
if not __file__ == '<stdin>':
- shutil.copy(__file__,
- self.binary_path)
+ try:
+ shutil.copy(__file__,
+ self.binary_path)
+ except shutil.SameFileError:
+ pass
with open(os.path.join(self.daemon_path, 'unit.run'), 'w') as f:
f.write(self.unit_run)