Commit 7dfc2e0b authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

slaprunner: rstrip when reading software-type

parent 94545cef
...@@ -156,7 +156,7 @@ def requestInstance(config, software_type=None): ...@@ -156,7 +156,7 @@ def requestInstance(config, software_type=None):
# Write it to conf file for later use # Write it to conf file for later use
open(software_type_path, 'w').write(software_type) open(software_type_path, 'w').write(software_type)
elif os.path.exists(software_type_path): elif os.path.exists(software_type_path):
software_type = open(software_type_path).read() software_type = open(software_type_path).read().rstrip()
else: else:
software_type = 'default' software_type = 'default'
......
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