mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-22 20:54:49 +09:00
1 parent
ddd263744e
commit
30ea2bbeb4
2 files changed
+3
-3
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user