1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

B #4646: change info filter to default one (#4647)

This commit is contained in:
Alejandro Huertas Herrero 2020-05-04 17:21:16 +02:00 committed by GitHub
parent ddd263744e
commit 30ea2bbeb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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