Skip to content

Commit

Permalink
Update archReview.py
Browse files Browse the repository at this point in the history
  • Loading branch information
zsalinas authored May 24, 2018
1 parent f847e34 commit 72e9107
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion archReview.py
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ def parseCpuPerfInfo(cpu_out):
try:
dc = d.deviceClass().primaryAq().getPrimaryId()[10:]
except AttributeError:
fixscript = 'for dev in dmd.Devices.getSubDevices():\n if dev.deviceClass == None:\n devclass = dev.getPrimaryParent().getPrimaryParent()\n print "Re-Linking %s to %s" % (dev.id, devclass)\n dev.deviceClass._add(devclass)\n commit()'
fixscript = 'for dev in dmd.Devices.getSubDevices():\n if dev.deviceClass() == None:\n devclass = dev.getPrimaryParent().getPrimaryParent()\n print "Re-Linking %s to %s" % (dev.id, devclass)\n dev.deviceClass._add(devclass)\n commit()'
print 'There are broken relationships. Please run the following script in zendmd to fix them and re-run the script: \n %s' % fixscript
sys.exit()
if not dc in coll_info[comp.id]['stats']:
Expand Down

0 comments on commit 72e9107

Please # to comment.