Commit 604b5108 authored by Rafael Monnerat's avatar Rafael Monnerat

Small styles changes.

parent 0e76f9ec
......@@ -206,7 +206,7 @@ def requestComputerPartition(partition_reference = ''):
a(partition_id)
if instance_json:
# XXX-Cedric : change xml to sjon in sql
q+= ' ,xml=?'
q += ' ,xml=?'
a(instance_json)
q += ' WHERE reference=?'
a(partition['reference'].encode())
......@@ -252,8 +252,6 @@ def loadComputerConfigurationFromXML():
xml = request.form['xml']
computer_dict = xml_marshaller.xml_marshaller.loads(str(xml))
if app.config['computer_id'] == computer_dict['reference']:
args = []
a = args.append
execute_db('computer', 'INSERT OR REPLACE INTO %s values(:address, :netmask)',
computer_dict)
for partition in computer_dict['partition_list']:
......
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