Skip to content

Commit

Permalink
Merge pull request #531 from HewlettPackard/issue_487
Browse files Browse the repository at this point in the history
fixed issue 487
  • Loading branch information
VenkateshRavula committed Jun 12, 2020
2 parents 015251c + ca65281 commit 8136dfe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Ansible Modules for HPE OneView Change Log

## v5.6.1 (unreleased)

#### Bug fixes & Enhancements
- [#487](https://github.com/HewlettPackard/oneview-ansible/issues/487) Fails Server profile update in case of existing network_set

## v5.6.0

Extends support of the SDK to OneView REST API version 1600 (OneView v5.20).
Expand Down
3 changes: 2 additions & 1 deletion library/module_utils/oneview.py
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,8 @@ def _replace_networks_name_by_uri(self, data):
for connection in connections:
if 'networkName' in connection:
name = connection.pop('networkName')
connection['networkUri'] = self._get_network_by_name(name)['uri']
if name is not None:
connection['networkUri'] = self._get_network_by_name(name)['uri']

def _replace_server_hardware_type_name_by_uri(self, data):
self._replace_name_by_uri(data, 'serverHardwareTypeName', self.SERVER_HARDWARE_TYPE_NOT_FOUND,
Expand Down

0 comments on commit 8136dfe

Please sign in to comment.