Skip to content

Commit

Permalink
Merge pull request #106 from HewlettPackard/dummy_branch
Browse files Browse the repository at this point in the history
dummy commit
  • Loading branch information
VenkateshRavula authored Nov 4, 2020
2 parents 386eff2 + ee49e33 commit a994538
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
14 changes: 9 additions & 5 deletions examples/logical_enclosures.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from pprint import pprint

from hpeOneView.oneview_client import OneViewClient
from hpeOneView.exceptions import HPEOneViewException
from config_loader import try_load_from_file

config = {
Expand Down Expand Up @@ -108,11 +109,14 @@

# Create a logical enclosure
# This method is only available on HPE Synergy.
logical_enclosure = logical_enclosures.create(options)
print("Created logical enclosure'%s' successfully.\n uri = '%s'" % (
logical_enclosure.data['name'],
logical_enclosure.data['uri'])
)
try:
logical_enclosure = logical_enclosures.create(options)
print("Created logical enclosure'%s' successfully.\n uri = '%s'" % (
logical_enclosure.data['name'],
logical_enclosure.data['uri'])
)
except HPEOneViewException as e:
print(e.msg)

# Update the logical enclosure name
print("Update the logical enclosure to have a name of '%s'" %
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@
license='Apache',
packages=find_packages(exclude=['examples*', 'tests*']),
keywords=['oneview', 'hpe'],
long_description_content_type="text/markdown",
install_requires=['future>=0.15.2'])

0 comments on commit a994538

Please sign in to comment.