Skip to content

Commit a994538

Browse files
Merge pull request #106 from HewlettPackard/dummy_branch
dummy commit
2 parents 386eff2 + ee49e33 commit a994538

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

examples/logical_enclosures.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from pprint import pprint
1919

2020
from hpeOneView.oneview_client import OneViewClient
21+
from hpeOneView.exceptions import HPEOneViewException
2122
from config_loader import try_load_from_file
2223

2324
config = {
@@ -108,11 +109,14 @@
108109

109110
# Create a logical enclosure
110111
# This method is only available on HPE Synergy.
111-
logical_enclosure = logical_enclosures.create(options)
112-
print("Created logical enclosure'%s' successfully.\n uri = '%s'" % (
113-
logical_enclosure.data['name'],
114-
logical_enclosure.data['uri'])
115-
)
112+
try:
113+
logical_enclosure = logical_enclosures.create(options)
114+
print("Created logical enclosure'%s' successfully.\n uri = '%s'" % (
115+
logical_enclosure.data['name'],
116+
logical_enclosure.data['uri'])
117+
)
118+
except HPEOneViewException as e:
119+
print(e.msg)
116120

117121
# Update the logical enclosure name
118122
print("Update the logical enclosure to have a name of '%s'" %

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,5 @@
2929
license='Apache',
3030
packages=find_packages(exclude=['examples*', 'tests*']),
3131
keywords=['oneview', 'hpe'],
32+
long_description_content_type="text/markdown",
3233
install_requires=['future>=0.15.2'])

0 commit comments

Comments
 (0)