Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

use Mapping from collections.abc #1510

Merged
merged 2 commits into from Aug 10, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion scripts/modules/service.py
@@ -1,4 +1,5 @@
import collections
import collections.abc
import json
import sys

Expand Down Expand Up @@ -161,7 +162,7 @@ def render(self):
if content[prune] is None:
del (content[prune])
if self._env_vars:
if isinstance(content["environment"], collections.Mapping):
if isinstance(content["environment"], collections.abc.Mapping):
for ev in self._env_vars:
k, v = ev.split("=", 1)
content["environment"][k] = v
Expand Down