From fb9ac66b59cb8e7d2b03c993e338ba872841c1a0 Mon Sep 17 00:00:00 2001 From: Ratan Gupta Date: Mon, 29 May 2017 19:33:21 +0530 Subject: Remove the extra space from the directory name There was extra space at the start of the path and due to that bitbake creates the directory named "". This fix strips the spaces from either end. Resolves openbmc/openbmc#1413 Change-Id: I860aa9cbf95c556b938c591e2438b0504207a9f9 Signed-off-by: Ratan Gupta --- meta-phosphor/classes/obmc-phosphor-discovery-service.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'meta-phosphor/classes/obmc-phosphor-discovery-service.bbclass') diff --git a/meta-phosphor/classes/obmc-phosphor-discovery-service.bbclass b/meta-phosphor/classes/obmc-phosphor-discovery-service.bbclass index 9b66e7ea9..73a4875df 100644 --- a/meta-phosphor/classes/obmc-phosphor-discovery-service.bbclass +++ b/meta-phosphor/classes/obmc-phosphor-discovery-service.bbclass @@ -55,8 +55,8 @@ python discovery_services_postinstall() { if not avahi_enabled and slp_enabled: return - avahi_service_dir = d.getVar('AVAHI_SERVICES_DIR', True) - slp_service_dir = d.getVar('SLP_SERVICES_DIR', True) + avahi_service_dir = d.getVar('AVAHI_SERVICES_DIR', True).strip() + slp_service_dir = d.getVar('SLP_SERVICES_DIR', True).strip() if not os.path.exists(avahi_service_dir): os.makedirs(avahi_service_dir) -- cgit v1.2.3