Commit 0695c0d4 authored by Rafael Monnerat's avatar Rafael Monnerat

Tinny style changes

parent d1d71065
......@@ -30,10 +30,10 @@ def xml2dict(xml):
def partitiondict2partition(partition):
# XXX-Cedric : change function name, as it does no longer create a
# Partition instance, but rather create a dict ready to be sent in json
slap_partition = dict(computer_id = app.config['computer_id'],
computer_partition_id = partition['reference'],
requested_state = 'started',
partition_reference = partition['partition_reference'])
slap_partition = dict(computer_id=app.config['computer_id'],
computer_partition_id=partition['reference'],
requested_state='started',
partition_reference=partition['partition_reference'])
if partition['software_release']:
slap_partition['need_modification'] = 1
else:
......@@ -146,7 +146,7 @@ def requestComputerPartition(partition_reference = ''):
if (software_type is None):
software_type = 'RootSoftwareInstance'
software_type = software_type.encode()
if partition_reference is '' :
if partition_reference is '':
partition_reference = request_dict.get('partition_reference', '').encode()
partition_id = request_dict.get('computer_partition_id', '')
if (partition_id is None):
......
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