summaryrefslogtreecommitdiffstats
path: root/meta-phosphor/classes
diff options
context:
space:
mode:
Diffstat (limited to 'meta-phosphor/classes')
-rw-r--r--meta-phosphor/classes/obmc-phosphor-discovery-service.bbclass12
1 files changed, 6 insertions, 6 deletions
diff --git a/meta-phosphor/classes/obmc-phosphor-discovery-service.bbclass b/meta-phosphor/classes/obmc-phosphor-discovery-service.bbclass
index 73a4875df..313402ff3 100644
--- a/meta-phosphor/classes/obmc-phosphor-discovery-service.bbclass
+++ b/meta-phosphor/classes/obmc-phosphor-discovery-service.bbclass
@@ -3,12 +3,12 @@ DISCOVERY_SVC_PACKAGES ?= "${PN}"
python() {
avahi_enabled = bb.utils.contains(
- 'DISTRO_FEATURES', 'avahi', 'true', 'false', d)
+ 'DISTRO_FEATURES', 'avahi', True, False, d)
slp_enabled = bb.utils.contains(
- 'DISTRO_FEATURES', 'slp', 'true', 'false', d)
+ 'DISTRO_FEATURES', 'slp', True, False, d)
- if not avahi_enabled and slp_enabled:
+ if not avahi_enabled and not slp_enabled:
return
syscnfdir = d.getVar('sysconfdir', True)
@@ -48,11 +48,11 @@ python() {
python discovery_services_postinstall() {
avahi_enabled = bb.utils.contains(
- 'DISTRO_FEATURES', 'avahi', 'true', 'false', d)
+ 'DISTRO_FEATURES', 'avahi', True, False, d)
slp_enabled = bb.utils.contains(
- 'DISTRO_FEATURES', 'slp', 'true', 'false', d)
+ 'DISTRO_FEATURES', 'slp', True, False, d)
- if not avahi_enabled and slp_enabled:
+ if not avahi_enabled and not slp_enabled:
return
avahi_service_dir = d.getVar('AVAHI_SERVICES_DIR', True).strip()
OpenPOWER on IntegriCloud