我正在使用Google Cloud Deployment Manager来部署云应用程序。我正在用Python编写var taxInfo = Context.Query<TaxItemInfo>().FromSql
(
$@"select ti.TaxId, ti.ApplyTax, ip.Price, tx.Value as TaxValue, tx.SpecifyItems, tx.TaxType, tx.UseNetPrice
from TaxItem ti
inner join Tax tx on tx.id = ti.TaxId
inner join Item on ti.ItemId = Item.Id
inner join
(
select top 1 locationId,regionId,ItemId,Price from ItemPrice where ItemId = {ItemId} and
(
(LocationId is not null and LocationId = {LocationId}) OR
(LocationId is null and RegionId = {RegionId})
)
) ip on ip.ItemId = Item.Id"
);
函数,以返回资源列表。我的问题是,如果资源确实存在,我不想创建它,例如,如果网络已经存在,我不想创建它。这就是我所做的:
运行gcloud进行部署时,出现此错误:
GenerateConfig()