summaryrefslogtreecommitdiffstats
path: root/meta-phosphor
diff options
context:
space:
mode:
authorRatan Gupta <ratagupt@in.ibm.com>2017-05-29 19:33:21 +0530
committerPatrick Williams <patrick@stwcx.xyz>2017-06-02 12:13:53 +0000
commitfb9ac66b59cb8e7d2b03c993e338ba872841c1a0 (patch)
treefe564a3256b88520ea6e9c5ce4e69b002df76fb2 /meta-phosphor
parent79b9db7b4d029ccea5cb95f1255785a7b257c9c9 (diff)
downloadtalos-openbmc-fb9ac66b59cb8e7d2b03c993e338ba872841c1a0.tar.gz
talos-openbmc-fb9ac66b59cb8e7d2b03c993e338ba872841c1a0.zip
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 <ratagupt@in.ibm.com>
Diffstat (limited to 'meta-phosphor')
-rw-r--r--meta-phosphor/classes/obmc-phosphor-discovery-service.bbclass4
1 files changed, 2 insertions, 2 deletions
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)
OpenPOWER on IntegriCloud