feat: better error message, add pulumi_random
This commit is contained in:
parent
f8e5583f00
commit
5ab6069a37
@ -1059,11 +1059,18 @@ class Stack(object):
|
|||||||
|
|
||||||
if "parameters" not in settings:
|
if "parameters" not in settings:
|
||||||
settings["parameters"] = {}
|
settings["parameters"] = {}
|
||||||
|
|
||||||
# hack for bug above, we support one level of nested values for now
|
# hack for bug above, we support one level of nested values for now
|
||||||
_val = pulumi_settings["config"]["{}:{}".format(
|
_val = pulumi_settings["config"]["{}:{}".format(
|
||||||
self.parameters["Conglomerate"], key)]
|
self.parameters["Conglomerate"], key)]
|
||||||
if '.' in key:
|
if '.' in key:
|
||||||
(root, leaf) = key.split('.')
|
try:
|
||||||
|
(root, leaf) = key.split('.')
|
||||||
|
except ValueError as e:
|
||||||
|
raise ParameterIllegalValue(
|
||||||
|
"Currently only one level hierachies within parameters are supported!"
|
||||||
|
)
|
||||||
|
|
||||||
if root not in settings["parameters"]:
|
if root not in settings["parameters"]:
|
||||||
settings["parameters"][root] = {}
|
settings["parameters"][root] = {}
|
||||||
|
|
||||||
|
@ -26,6 +26,7 @@ dependencies = [
|
|||||||
"pulumi-aws-native==0.103.0",
|
"pulumi-aws-native==0.103.0",
|
||||||
"pulumi-policy==1.11.0",
|
"pulumi-policy==1.11.0",
|
||||||
"pulumi-command==0.10.0",
|
"pulumi-command==0.10.0",
|
||||||
|
"pulumi_random==4.16.6",
|
||||||
]
|
]
|
||||||
|
|
||||||
classifiers = [
|
classifiers = [
|
||||||
|
Loading…
Reference in New Issue
Block a user