summaryrefslogtreecommitdiff
path: root/meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-host/merge_yamls.py
diff options
context:
space:
mode:
authorEd Tanous <ed.tanous@intel.com>2019-06-06 18:46:32 +0300
committerEd Tanous <ed.tanous@intel.com>2019-06-06 18:46:32 +0300
commit9087065ce8c9f13d6450293c15101a3db5fe6f49 (patch)
treec78d4375a5683f01a302a63cfc5b96a217b52cdc /meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-host/merge_yamls.py
parent87a65e63bac789bca0607e0b4ab09d62517b95e7 (diff)
parent85b484ca342da7732cf3ca9f602a4a49531bfe50 (diff)
downloadopenbmc-9087065ce8c9f13d6450293c15101a3db5fe6f49.tar.xz
Merge branch 'master' of ssh://git-amr-1.devtools.intel.com:29418/openbmc-openbmc into intel
Diffstat (limited to 'meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-host/merge_yamls.py')
-rwxr-xr-xmeta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-host/merge_yamls.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-host/merge_yamls.py b/meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-host/merge_yamls.py
index 877e3eb57..5e6c4b5e6 100755
--- a/meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-host/merge_yamls.py
+++ b/meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-host/merge_yamls.py
@@ -12,11 +12,6 @@ import sys
import yaml
import copy
-# Custom representer for None types. This is to handle empty dictionaries.
-# By default Pyyaml outputs these as "null", whereas we want an empty character.
-def represent_none(self, _):
- return self.represent_scalar('tag:yaml.org,2002:null', '')
-
def dict_merge(target, source):
"""Deep merge for dicts.
@@ -48,8 +43,6 @@ if len(sys.argv) == 2:
# No overrides to handle
sys.exit(0)
-yaml.add_representer(type(None), represent_none)
-
target_filename = sys.argv[1]
with open(target_filename) as target_file:
data = yaml.safe_load(target_file)