inmanta-module-std 8.3.2__tar.gz → 8.4.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {inmanta_module_std-8.3.2 → inmanta_module_std-8.4.0}/PKG-INFO +1 -1
- {inmanta_module_std-8.3.2 → inmanta_module_std-8.4.0}/inmanta_module_std.egg-info/PKG-INFO +1 -1
- {inmanta_module_std-8.3.2 → inmanta_module_std-8.4.0}/inmanta_plugins/std/__init__.py +7 -2
- {inmanta_module_std-8.3.2 → inmanta_module_std-8.4.0}/inmanta_plugins/std/setup.cfg +1 -1
- {inmanta_module_std-8.3.2 → inmanta_module_std-8.4.0}/setup.cfg +1 -1
- {inmanta_module_std-8.3.2 → inmanta_module_std-8.4.0}/tests/test_reference.py +3 -0
- {inmanta_module_std-8.3.2 → inmanta_module_std-8.4.0}/MANIFEST.in +0 -0
- {inmanta_module_std-8.3.2 → inmanta_module_std-8.4.0}/README.md +0 -0
- {inmanta_module_std-8.3.2 → inmanta_module_std-8.4.0}/inmanta_module_std.egg-info/SOURCES.txt +0 -0
- {inmanta_module_std-8.3.2 → inmanta_module_std-8.4.0}/inmanta_module_std.egg-info/dependency_links.txt +0 -0
- {inmanta_module_std-8.3.2 → inmanta_module_std-8.4.0}/inmanta_module_std.egg-info/not-zip-safe +0 -0
- {inmanta_module_std-8.3.2 → inmanta_module_std-8.4.0}/inmanta_module_std.egg-info/requires.txt +0 -0
- {inmanta_module_std-8.3.2 → inmanta_module_std-8.4.0}/inmanta_module_std.egg-info/top_level.txt +0 -0
- {inmanta_module_std-8.3.2 → inmanta_module_std-8.4.0}/inmanta_plugins/std/model/_init.cf +0 -0
- {inmanta_module_std-8.3.2 → inmanta_module_std-8.4.0}/inmanta_plugins/std/model/testing.cf +0 -0
- {inmanta_module_std-8.3.2 → inmanta_module_std-8.4.0}/inmanta_plugins/std/resources.py +0 -0
- {inmanta_module_std-8.3.2 → inmanta_module_std-8.4.0}/inmanta_plugins/std/templates/host_uri.j2 +0 -0
- {inmanta_module_std-8.3.2 → inmanta_module_std-8.4.0}/inmanta_plugins/std/types.py +0 -0
- {inmanta_module_std-8.3.2 → inmanta_module_std-8.4.0}/pyproject.toml +0 -0
- {inmanta_module_std-8.3.2 → inmanta_module_std-8.4.0}/tests/test_agent.py +0 -0
- {inmanta_module_std-8.3.2 → inmanta_module_std-8.4.0}/tests/test_agentconfig.py +0 -0
- {inmanta_module_std-8.3.2 → inmanta_module_std-8.4.0}/tests/test_get_attribute.py +0 -0
- {inmanta_module_std-8.3.2 → inmanta_module_std-8.4.0}/tests/test_mutables.py +0 -0
- {inmanta_module_std-8.3.2 → inmanta_module_std-8.4.0}/tests/test_plugins.py +0 -0
- {inmanta_module_std-8.3.2 → inmanta_module_std-8.4.0}/tests/test_resource.py +0 -0
- {inmanta_module_std-8.3.2 → inmanta_module_std-8.4.0}/tests/test_template.py +0 -0
- {inmanta_module_std-8.3.2 → inmanta_module_std-8.4.0}/tests/test_types.py +0 -0
- {inmanta_module_std-8.3.2 → inmanta_module_std-8.4.0}/tests/test_unknown.py +0 -0
- {inmanta_module_std-8.3.2 → inmanta_module_std-8.4.0}/tests/test_warnings.py +0 -0
|
@@ -777,8 +777,6 @@ def getfact(
|
|
|
777
777
|
"""
|
|
778
778
|
Retrieve a fact of the given resource
|
|
779
779
|
"""
|
|
780
|
-
global fact_cache
|
|
781
|
-
|
|
782
780
|
resource_id = inmanta.resources.to_id(resource)
|
|
783
781
|
if resource_id is None:
|
|
784
782
|
raise Exception("Facts can only be retreived from resources.")
|
|
@@ -1352,6 +1350,13 @@ try:
|
|
|
1352
1350
|
raise LookupError(f"Environment variable {env_var_name} is not set")
|
|
1353
1351
|
return value
|
|
1354
1352
|
|
|
1353
|
+
def __eq__(self, value: object) -> bool:
|
|
1354
|
+
match value:
|
|
1355
|
+
case EnvironmentReference():
|
|
1356
|
+
return self.name == value.name
|
|
1357
|
+
case _:
|
|
1358
|
+
return False
|
|
1359
|
+
|
|
1355
1360
|
@plugin
|
|
1356
1361
|
def create_environment_reference(name: str | Reference[str]) -> Reference[str]:
|
|
1357
1362
|
"""Create an environment reference
|
|
@@ -37,6 +37,9 @@ def test_references_resource(project: Project, monkeypatch) -> None:
|
|
|
37
37
|
metavalue = std::create_environment_reference("METATESTENV")
|
|
38
38
|
value = std::create_environment_reference(metavalue)
|
|
39
39
|
std::testing::NullResource(agentname="test", name="aaa", value=value)
|
|
40
|
+
|
|
41
|
+
# Test that identical references are the same value for the compiler
|
|
42
|
+
value = std::create_environment_reference(metavalue)
|
|
40
43
|
"""
|
|
41
44
|
)
|
|
42
45
|
|
|
File without changes
|
|
File without changes
|
{inmanta_module_std-8.3.2 → inmanta_module_std-8.4.0}/inmanta_module_std.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{inmanta_module_std-8.3.2 → inmanta_module_std-8.4.0}/inmanta_module_std.egg-info/not-zip-safe
RENAMED
|
File without changes
|
{inmanta_module_std-8.3.2 → inmanta_module_std-8.4.0}/inmanta_module_std.egg-info/requires.txt
RENAMED
|
File without changes
|
{inmanta_module_std-8.3.2 → inmanta_module_std-8.4.0}/inmanta_module_std.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{inmanta_module_std-8.3.2 → inmanta_module_std-8.4.0}/inmanta_plugins/std/templates/host_uri.j2
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|