diff options
author | Mark Asselstine <mark.asselstine@windriver.com> | 2016-12-21 10:14:22 -0500 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2016-12-21 11:47:05 -0500 |
commit | aac8e1fe714cfa5bdecb520ff96bae381b7426b1 (patch) | |
tree | a5fa561e7fcf2473e2a39b40264ed81f8b41c53f | |
parent | 760b77b2a3ae5afbff6998bdf4609a127f188025 (diff) | |
download | meta-cloud-services-aac8e1fe714cfa5bdecb520ff96bae381b7426b1.tar.gz |
identity: make work with python 3
dict.has_key has been deprecated for a while and officiall removed in
python 3, instead we need to use 'key in'.
Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
-rw-r--r-- | meta-openstack/classes/identity.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta-openstack/classes/identity.bbclass b/meta-openstack/classes/identity.bbclass index 97f778f..c4b1394 100644 --- a/meta-openstack/classes/identity.bbclass +++ b/meta-openstack/classes/identity.bbclass | |||
@@ -105,7 +105,7 @@ def usercreate_param(d, pkg): | |||
105 | 105 | ||
106 | for key, value in param_defaults.items(): | 106 | for key, value in param_defaults.items(): |
107 | if key in param.split(): | 107 | if key in param.split(): |
108 | if param_flags.has_key(key): | 108 | if key in param_flags: |
109 | param_defaults[key] = param_flags[key] | 109 | param_defaults[key] = param_flags[key] |
110 | else: | 110 | else: |
111 | param_defaults[key] = '' | 111 | param_defaults[key] = '' |
@@ -135,7 +135,7 @@ def servicecreate_param(d, pkg): | |||
135 | 135 | ||
136 | for key, value in param_defaults.items(): | 136 | for key, value in param_defaults.items(): |
137 | if key in param.split(): | 137 | if key in param.split(): |
138 | if param_flags.has_key(key): | 138 | if key in param_flags: |
139 | param_defaults[key] = param_flags[key] | 139 | param_defaults[key] = param_flags[key] |
140 | else: | 140 | else: |
141 | param_defaults[key] = '' | 141 | param_defaults[key] = '' |