File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 18
18
from pprint import pprint
19
19
20
20
from hpeOneView .oneview_client import OneViewClient
21
+ from hpeOneView .exceptions import HPEOneViewException
21
22
from config_loader import try_load_from_file
22
23
23
24
config = {
108
109
109
110
# Create a logical enclosure
110
111
# 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 )
116
120
117
121
# Update the logical enclosure name
118
122
print ("Update the logical enclosure to have a name of '%s'" %
Original file line number Diff line number Diff line change 29
29
license = 'Apache' ,
30
30
packages = find_packages (exclude = ['examples*' , 'tests*' ]),
31
31
keywords = ['oneview' , 'hpe' ],
32
+ long_description_content_type = "text/markdown" ,
32
33
install_requires = ['future>=0.15.2' ])
You can’t perform that action at this time.
0 commit comments