Skip to content

Commit

Permalink
releng - update deps (cloud-custodian#9832)
Browse files Browse the repository at this point in the history
  • Loading branch information
kapilt authored Nov 14, 2024
1 parent 626bfa8 commit 8dfa5f5
Show file tree
Hide file tree
Showing 19 changed files with 2,364 additions and 2,423 deletions.
313 changes: 154 additions & 159 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ classifiers=[
custodian = 'c7n.cli:main'

[tool.poetry.dependencies]
cryptography = "<43"
cryptography = "<46"
python = "^3.8"
boto3 = "^1.12.31"
jsonschema = ">=4.18"
Expand Down
299 changes: 147 additions & 152 deletions tools/c7n_awscc/poetry.lock

Large diffs are not rendered by default.

344 changes: 170 additions & 174 deletions tools/c7n_azure/poetry.lock

Large diffs are not rendered by default.

337 changes: 166 additions & 171 deletions tools/c7n_gcp/poetry.lock

Large diffs are not rendered by default.

305 changes: 150 additions & 155 deletions tools/c7n_kube/poetry.lock

Large diffs are not rendered by default.

13 changes: 11 additions & 2 deletions tools/c7n_left/c7n_left/providers/terraform/variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ def get_uninitialized_var_files(self):
if not v["__tfmeta"]["path"].startswith("variable"):
continue
if v["__tfmeta"]["label"] not in var_map:
uninitialized_vars[v["__tfmeta"]["label"]] = self.type_defaults[
uninitialized_vars[v["__tfmeta"]["label"]] = self.get_type_default(
v.get("type", "string") or "string"
]
)

if not uninitialized_vars:
return []
Expand All @@ -145,6 +145,15 @@ def get_uninitialized_var_files(self):
).relative_to(self.source_dir.absolute())
]

@classmethod
def get_type_default(cls, vtype):
if vtype in cls.type_defaults:
return cls.type_defaults[vtype]
elif " " in vtype:
vtype, _ = vtype.split(' ', 1)
return cls.type_defaults[vtype]
return cls.type_defaults["string"]

def get_env_variables(self):
prefix = "TF_VAR_"
return {k[len(prefix) :]: v for k, v in os.environ.items() if k.startswith(prefix)}
Expand Down
337 changes: 166 additions & 171 deletions tools/c7n_left/poetry.lock

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions tools/c7n_left/tests/test_left.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
)
from c7n_left.providers.terraform.graph import Resolver
from c7n_left.providers.terraform.filters import Taggable
from c7n_left.providers.terraform.variables import VariableResolver

LEFT_INSTALLED = True
except ImportError:
Expand Down Expand Up @@ -637,6 +638,11 @@ def test_graph_merge_function(policy_env):
assert log_group["tags"] == {"Env": "Public", "Component": "application"}


def test_variable_type_default():
assert VariableResolver.get_type_default("xyz") == ""
assert VariableResolver.get_type_default("map of strings") == {}


def test_null_tag_value(policy_env):
policy_env.write_tf(
"""
Expand Down
287 changes: 141 additions & 146 deletions tools/c7n_logexporter/poetry.lock

Large diffs are not rendered by default.

435 changes: 215 additions & 220 deletions tools/c7n_mailer/poetry.lock

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions tools/c7n_oci/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

299 changes: 147 additions & 152 deletions tools/c7n_openstack/poetry.lock

Large diffs are not rendered by default.

299 changes: 147 additions & 152 deletions tools/c7n_org/poetry.lock

Large diffs are not rendered by default.

315 changes: 155 additions & 160 deletions tools/c7n_policystream/poetry.lock

Large diffs are not rendered by default.

299 changes: 147 additions & 152 deletions tools/c7n_sphinxext/poetry.lock

Large diffs are not rendered by default.

305 changes: 150 additions & 155 deletions tools/c7n_tencentcloud/poetry.lock

Large diffs are not rendered by default.

287 changes: 141 additions & 146 deletions tools/c7n_terraform/poetry.lock

Large diffs are not rendered by default.

287 changes: 141 additions & 146 deletions tools/c7n_trailcreator/poetry.lock

Large diffs are not rendered by default.

0 comments on commit 8dfa5f5

Please sign in to comment.