Skip to content

Commit

Permalink
Merge pull request #307 from qwat/fix_yaml
Browse files Browse the repository at this point in the history
Fix yaml warnings
  • Loading branch information
lbartoletti authored Oct 3, 2019
2 parents 43a81a4 + c52529c commit 2dbc95d
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion ordinary_data/views/export/export_hydrant.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
else:
pg_service = "qwat_test"

definition = yaml.load("""
definition = yaml.safe_load("""
name: qwat_od.vw_export_hydrant
Expand Down
2 changes: 1 addition & 1 deletion ordinary_data/views/export/export_installation.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
else:
pg_service = "qwat_test"

definition = yaml.load("""
definition = yaml.safe_load("""
name: qwat_od.vw_export_installation
Expand Down
2 changes: 1 addition & 1 deletion ordinary_data/views/export/export_leak.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
else:
pg_service = "qwat_test"

definition = yaml.load("""
definition = yaml.safe_load("""
name: qwat_od.vw_export_leak
Expand Down
2 changes: 1 addition & 1 deletion ordinary_data/views/export/export_meter.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
else:
pg_service = "qwat_test"

definition = yaml.load("""
definition = yaml.safe_load("""
name: qwat_od.vw_export_meter
Expand Down
2 changes: 1 addition & 1 deletion ordinary_data/views/export/export_part.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
else:
pg_service = "qwat_test"

definition = yaml.load("""
definition = yaml.safe_load("""
name: qwat_od.vw_export_part
Expand Down
2 changes: 1 addition & 1 deletion ordinary_data/views/export/export_pipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
else:
pg_service = "qwat_test"

definition = yaml.load("""
definition = yaml.safe_load("""
name: qwat_od.vw_export_pipe
Expand Down
2 changes: 1 addition & 1 deletion ordinary_data/views/export/export_printmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
else:
pg_service = "qwat_test"

definition = yaml.load("""
definition = yaml.safe_load("""
name: qwat_od.vw_export_printmap
Expand Down
2 changes: 1 addition & 1 deletion ordinary_data/views/export/export_remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
else:
pg_service = "qwat_test"

definition = yaml.load("""
definition = yaml.safe_load("""
name: qwat_od.vw_export_remote
Expand Down
2 changes: 1 addition & 1 deletion ordinary_data/views/export/export_subscriber.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
else:
pg_service = "qwat_test"

definition = yaml.load("""
definition = yaml.safe_load("""
name: qwat_od.vw_export_subscriber
Expand Down
2 changes: 1 addition & 1 deletion ordinary_data/views/export/export_valve.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
else:
pg_service = "qwat_test"

definition = yaml.load("""
definition = yaml.safe_load("""
name: qwat_od.vw_export_valve
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def __init__(self, service, definition):
self.cur = self.conn.cursor(cursor_factory=psycopg2.extras.DictCursor)

# Read configuration
self.definition = yaml.load(definition)
self.definition = yaml.safe_load(definition)

# Recursive process of definition
self.nbExecution = 0 # Number of executions
Expand Down

0 comments on commit 2dbc95d

Please sign in to comment.