File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1- __version__ = "0.7.22 "
1+ __version__ = "0.7.23 "
22__author__ = "David Whittingham; David Payne; Adam Kerz; Peter Reyne; Daniel Baternik; Chris Blanchfield; Gary Bagnall"
33__copyright__ = "Copyright (C) 2013-2022 David Whittingham"
Original file line number Diff line number Diff line change @@ -60,7 +60,11 @@ def __init__(self, cim_obj):
6060class ProStandaloneTable (ProDisplayTableBase ):
6161 def __init__ (self , proj_zip , xml_string ):
6262 self ._proj_zip = proj_zip
63- super ().__init__ (CIMStandaloneTable .FromXml (xml_string ))
64-
63+ try :
64+ super ().__init__ (CIMStandaloneTable .FromXml (xml_string ))
65+ except AttributeError :
66+ # probably JSON, attempt that
67+ super ().__init__ (CIMStandaloneTable .FromJson (xml_string ))
68+
6569 name = passthrough_prop ("Name" )
6670 service_id = passthrough_prop ("ServiceTableID" )
You can’t perform that action at this time.
0 commit comments