Commit 83c51a52 authored by Nicolas Wavrant's avatar Nicolas Wavrant

fixup! runner: opening Software Release supplies a new one, instead of destroying all data

parent d2ac0923
...@@ -214,8 +214,12 @@ def supplySoftwareRelease(config, sr_path): ...@@ -214,8 +214,12 @@ def supplySoftwareRelease(config, sr_path):
updateProxy(config) updateProxy(config)
slap = slapos.slap.slap() slap = slapos.slap.slap()
slap.initializeConnection(config['master_url']) slap.initializeConnection(config['master_url'])
software_release_path = os.path.join(realpath(config, sr_path), config['software_profile'])
logger.info('Supplying new Software Release : %s' % software_release_path)
slap.registerSupply().supply( slap.registerSupply().supply(
os.path.join(realpath(config, sr_path), config['software_profile']), software_release_path,
computer_guid=config['computer_id'], computer_guid=config['computer_id'],
) )
# Don't replace .project if there is a running instance # Don't replace .project if there is a running instance
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment