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

Commit

Permalink
use Mapping from collections.abc (#1510)
Browse files Browse the repository at this point in the history
  • Loading branch information
graphaelli committed Aug 10, 2022
1 parent 30405fe commit b5ebd50
Showing 1 changed file with 2 additions and 1 deletion.
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

0 comments on commit b5ebd50

Please sign in to comment.