mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-16 22:50:10 +03:00
parent
ddd263744e
commit
30ea2bbeb4
@ -21,7 +21,7 @@ module OpenNebula
|
||||
|
||||
DOCUMENT_TYPE = 100
|
||||
|
||||
def initialize(client, user_id = -1)
|
||||
def initialize(client, user_id = -2)
|
||||
super(client, user_id)
|
||||
end
|
||||
|
||||
|
@ -57,12 +57,12 @@ module Migrator
|
||||
|
||||
json = JSON.parse(doc.xpath('//BODY').text)
|
||||
|
||||
json['networks'] = json['custom_attrs']
|
||||
json['networks'] = json['custom_attrs'] || {}
|
||||
json['custom_attrs'] = {}
|
||||
|
||||
# services
|
||||
if row[:type] == 100
|
||||
json['networks_values'] = json['custom_attrs_values']
|
||||
json['networks_values'] = json['custom_attrs_values'] || {}
|
||||
json['custom_attrs_values'] = {}
|
||||
|
||||
# remove unneeded VM information
|
||||
|
Loading…
x
Reference in New Issue
Block a user