-
Notifications
You must be signed in to change notification settings - Fork 57
override for type in migratable_vc_domains #432
base: master
Are you sure you want to change the base?
Conversation
Can you please update the test cases as well? to match the resource file changes you have made. |
"credentials": { | ||
"userName": "Administrator", | ||
"password": "" | ||
"password": "GSE#admin1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove password
@@ -57,6 +57,7 @@ | |||
config['enclosure_username'], | |||
config['enclosure_password'], | |||
config['vcmUsername'], config['vcmPassword'], | |||
type = 'MigratableVcDomainV300', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove extra line
@@ -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): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding type filed here is not a good idea.
Add DEFAULT_VALUES class variable to support type field for different versions.
Refer this file, https://github.com/HewlettPackard/python-hpOneView/blob/master/hpOneView/resources/networking/fc_networks.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, need to make some changes in MigratableVcDoamins class
Update MigratableVcDoamins class - inherit from Resource base class and remove common methods as delete create, get, etc. from MigratableVcDomains class
Use FCNetwork module for reference - https://github.com/HewlettPackard/python-hpOneView/blob/master/hpOneView/resources/networking/fc_networks.py
Description
[Describe what this change achieves]
The code has been changed in :
python-hpOneView\hpOneView\resources\servers\migratable_vc_domains.py
The change is in the function "make_migration_information" wherein a parameter has been
added with the default value for 'type' as 'migratable-vc-domains'.
python-hpOneView\examples\migratable_vc_domains.py
The call to the above function will have a parameter passed as "type = 'MigratableVcDomainV300' "
Issues Resolved
[List any issues this PR will resolve. e.g., Fixes #1]
Issue #431
Check List
$ tox
).