Skip to content

Commit

Permalink
- Using yaml.safe_load instead of yaml.load.
Browse files Browse the repository at this point in the history
issue #?
  • Loading branch information
albamig committed Jan 26, 2022
1 parent 7e17ee5 commit dfc6f5b
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion microservice/language/python/deploy/kubernetes/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def build_deploy_playbook(path: Path) -> str:
data = None
if path.exists():
with path.open() as file:
data = yaml.load(file, Loader=yaml.FullLoader)
data = yaml.safe_load(file)

if data is None:
data = list()
Expand Down
2 changes: 1 addition & 1 deletion microservice/language/python/init/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def build_deploy_playbook(path: Path) -> str:
data = None
if path.exists():
with path.open() as file:
data = yaml.load(file, Loader=yaml.FullLoader)
data = yaml.safe_load(file)

if data is None:
data = list()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def build_deploy_playbook(path: Path) -> str:
data = None
if path.exists():
with path.open() as file:
data = yaml.load(file, Loader=yaml.FullLoader)
data = yaml.safe_load(file)

if data is None:
data = list()
Expand Down
2 changes: 1 addition & 1 deletion project/apigateway/minos/deploy/docker-compose/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def build_docker_compose(path: Path) -> str:
raise ValueError("A base Compose file must exist.")

with path.open() as file:
data = yaml.load(file, Loader=yaml.FullLoader)
data = yaml.safe_load(file)

container = {
"restart": "always",
Expand Down
2 changes: 1 addition & 1 deletion project/apigateway/minos/deploy/kubernetes/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def build_deploy_playbook(path: Path) -> str:
data = None
if path.exists():
with path.open() as file:
data = yaml.load(file, Loader=yaml.FullLoader)
data = yaml.safe_load(file)

if data is None:
data = list()
Expand Down
2 changes: 1 addition & 1 deletion project/broker/kafka/deploy/docker-compose/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def build_docker_compose(path: Path) -> str:
raise ValueError("A base Compose file must exist.")

with path.open() as file:
data = yaml.load(file, Loader=yaml.FullLoader)
data = yaml.safe_load(file)

data["volumes"]["zookeeper"] = {}
data["volumes"]["kafka"] = {}
Expand Down
2 changes: 1 addition & 1 deletion project/broker/kafka/deploy/kubernetes/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def build_deploy_playbook(path: Path) -> str:
data = None
if path.exists():
with path.open() as file:
data = yaml.load(file, Loader=yaml.FullLoader)
data = yaml.safe_load(file)

if data is None:
data = list()
Expand Down
2 changes: 1 addition & 1 deletion project/database/postgres/deploy/docker-compose/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def build_docker_compose(path: Path) -> str:
raise ValueError("A base Compose file must exist.")

with path.open() as file:
data = yaml.load(file, Loader=yaml.FullLoader)
data = yaml.safe_load(file)

data["volumes"]["postgres"] = {}

Expand Down
2 changes: 1 addition & 1 deletion project/database/postgres/deploy/kubernetes/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def build_deploy_playbook(path: Path) -> str:
data = None
if path.exists():
with path.open() as file:
data = yaml.load(file, Loader=yaml.FullLoader)
data = yaml.safe_load(file)

if data is None:
data = list()
Expand Down
2 changes: 1 addition & 1 deletion project/database/redis/deploy/docker-compose/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def build_docker_compose(path: Path) -> str:
raise ValueError("A base Compose file must exist.")

with path.open() as file:
data = yaml.load(file, Loader=yaml.FullLoader)
data = yaml.safe_load(file)

container = {
"restart": "always",
Expand Down
2 changes: 1 addition & 1 deletion project/database/redis/deploy/kubernetes/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def build_deploy_playbook(path: Path) -> str:
data = None
if path.exists():
with path.open() as file:
data = yaml.load(file, Loader=yaml.FullLoader)
data = yaml.safe_load(file)

if data is None:
data = list()
Expand Down
2 changes: 1 addition & 1 deletion project/deploy/docker-compose/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ def build_docker_compose(path: Path) -> str:

if path.exists():
with path.open() as file:
data |= yaml.load(file)
data |= yaml.safe_load(file)

return yaml.dump(data, sort_keys=False)
2 changes: 1 addition & 1 deletion project/deploy/kubernetes/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def build_deploy_playbook(path: Path) -> str:
data = None
if path.exists():
with path.open() as file:
data = yaml.load(file, Loader=yaml.FullLoader)
data = yaml.safe_load(file)

if data is None:
data = list()
Expand Down
2 changes: 1 addition & 1 deletion project/discovery/minos/deploy/docker-compose/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def build_docker_compose(path: Path) -> str:
raise ValueError("A base Compose file must exist.")

with path.open() as file:
data = yaml.load(file, Loader=yaml.FullLoader)
data = yaml.safe_load(file)

container = {
"restart": "always",
Expand Down
2 changes: 1 addition & 1 deletion project/discovery/minos/deploy/kubernetes/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def build_deploy_playbook(path: Path) -> str:
data = None
if path.exists():
with path.open() as file:
data = yaml.load(file, Loader=yaml.FullLoader)
data = yaml.safe_load(file)

if data is None:
data = list()
Expand Down

0 comments on commit dfc6f5b

Please sign in to comment.