Skip to content

Commit

Permalink
[issue-1227] final version
Browse files Browse the repository at this point in the history
Signed-off-by: Katarzyna kulpa <[email protected]>
  • Loading branch information
katarzynakulpa committed Sep 30, 2024
1 parent 10f2db7 commit 39f8180
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/scheduler/patcher/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def run():
if manifest.changed:
manifest.backup()
manifest.moveManifest()
manifest.flush2()
manifest.flushMovedManifest()
log.info('manifest file({}) was patched'.format(manifest.copyPath))
manifest.restoreManifest()
first_try = False
Expand Down Expand Up @@ -245,7 +245,7 @@ def moveManifest(self):

def restoreManifest(self):
move(self.copyPath, self.path)
log.info('{} moved to {}'.format(self.copyPath, self.path))
log.info('{} restored from {}'.format(self.copyPath, self.path))

def restore(self):
backup_path = join(self.backup_folder,basename(self.path))
Expand All @@ -261,7 +261,7 @@ def load(self):
log.debug('manifest {} loaded'.format(self.path))
self.changed = False

def flush2(self):
def flushMovedManifest(self):
with open(self.copyPath, 'w') as f:
yaml.dump(self.content, f)
log.debug('manifest {} dumped'.format(self.copyPath))
Expand Down

0 comments on commit 39f8180

Please sign in to comment.