From 134f158f4fd857e7454383186f2975e8bb0568c8 Mon Sep 17 00:00:00 2001 From: Manoj-M-97 Date: Tue, 23 Apr 2019 12:11:59 +0530 Subject: [PATCH] override for type in migratable_vc_domains --- examples/migratable_vc_domains.py | 11 ++++++----- hpOneView/resources/servers/migratable_vc_domains.py | 4 ++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/examples/migratable_vc_domains.py b/examples/migratable_vc_domains.py index 8cf90c75..0ab86648 100644 --- a/examples/migratable_vc_domains.py +++ b/examples/migratable_vc_domains.py @@ -29,16 +29,16 @@ config = { - "ip": "172.16.102.59", + "ip": "172.168.100.251", "credentials": { "userName": "Administrator", - "password": "" + "password": "GSE#admin1" }, - "enclosure_hostname": "172.178.209.32", + "enclosure_hostname": "172.168.100.32", "enclosure_username": "Administrator", - "enclosure_password": "", + "enclosure_password": "Password", "vcmUsername": "Administrator", - "vcmPassword": "", + "vcmPassword": "Password", "enclosure_group_uri": None } @@ -57,6 +57,7 @@ config['enclosure_username'], config['enclosure_password'], config['vcmUsername'], config['vcmPassword'], + type = 'MigratableVcDomainV300', enclosureGroupUri=config['enclosure_group_uri']) # Start a migration by first creating a compatibility report diff --git a/hpOneView/resources/servers/migratable_vc_domains.py b/hpOneView/resources/servers/migratable_vc_domains.py index 78d8cdb6..d1e86f48 100644 --- a/hpOneView/resources/servers/migratable_vc_domains.py +++ b/hpOneView/resources/servers/migratable_vc_domains.py @@ -49,7 +49,7 @@ def __init__(self, connection): @staticmethod def make_migration_information(oaIpAddress, oaUsername, oaPassword, vcmUsername, vcmPassword, - iloLicenseType='OneView', enclosureGroupUri=None): + type = 'migratable-vc-domains', iloLicenseType='OneView', enclosureGroupUri=None): return { 'credentials': { 'oaIpAddress': oaIpAddress, @@ -61,7 +61,7 @@ def make_migration_information(oaIpAddress, oaUsername, oaPassword, vcmUsername, }, 'iloLicenseType': iloLicenseType, 'enclosureGroupUri': enclosureGroupUri, - 'type': 'migratable-vc-domains', + 'type': type, 'category': 'migratable-vc-domains' }