Skip to content

Changed StorageGroup.list_candidate_adapter_ports() to return None for FC-type - #2240

Open
andy-maier wants to merge 1 commit into
masterfrom
andy/fix-fc-sg
Open

Changed StorageGroup.list_candidate_adapter_ports() to return None for FC-type#2240
andy-maier wants to merge 1 commit into
masterfrom
andy/fix-fc-sg

Conversation

@andy-maier

Copy link
Copy Markdown
Member

For details, see the commit message.

…r FC-type

Details:

* FC-type storage groups do not have a property 'candidate-adapter-port-uris'.
  The StorageGroup.list_candidate_adapter_ports() method raised KeyError
  when called for FC-type storage groups. However, this was not documented.

  Changed the method to return None when called for FC-type storage groups
  and documented that.

  This is an incompatible change for users that handle that KeyError exception.
  Such code needs to be changed to test for None instead.

Signed-off-by: Andreas Maier <maiera@de.ibm.com>
@coveralls

Copy link
Copy Markdown
Collaborator

Coverage Status

coverage: 77.273% (-0.005%) from 77.278% — andy/fix-fc-sg into master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

StorageGroup.list_candidate_adapter_ports() raises KeyError for FC-type storage groups

2 participants