vmware/pyvmomi-community-samples

deploy ova/ovf with vAppConfig propoerties

Open

#506 创建于 2018年8月7日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)Python (914 fork)batch import
help wanted

仓库指标

Star
 (972 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

I was trying to deploy an ova/ovf image with vAppConfig properties and was using the "propertyMapping" option to feed the properties before image deploy. I dont see any errors but properties are also not getting set. Pls. let me know if im missing something .. Using vCenter 6.7

    mapping = []
    for k,v in property_mapping.items():
       mapping.append(vim.KeyValue(key=k, value=v))

vim.OvfManager.CreateImportSpecParams(entityName=name, propertyMapping=mapping)

贡献者指南