0

如何准确地使用该pyvmomi库来获得上述mapping内容,我的意思是要特别使用哪些数据结构。我想应该通过数据存储来完成。

def getdatastore(datastore):
try:
  summary = datastore.summary
  return summary.name
except Exception as error:
  print "Unable to access summary for datastore: ", datastore.name
  print error
  pass

尝试使用上述功能但徒劳无功

4

1 回答 1

0

You said you want to map "from VM to Storage"

Do you mean vm.datastore ?

If not, can you explain your self better ? (I'm sorry I can't comment, dont have 50 rep)

于 2017-09-10T12:56:16.333 回答