diff options
author | Ratan Gupta <ratagupt@in.ibm.com> | 2017-05-29 17:03:21 +0300 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-06-02 15:13:53 +0300 |
commit | fb9ac66b59cb8e7d2b03c993e338ba872841c1a0 (patch) | |
tree | fe564a3256b88520ea6e9c5ce4e69b002df76fb2 | |
parent | 79b9db7b4d029ccea5cb95f1255785a7b257c9c9 (diff) | |
download | openbmc-fb9ac66b59cb8e7d2b03c993e338ba872841c1a0.tar.xz |
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>
-rw-r--r-- | meta-phosphor/classes/obmc-phosphor-discovery-service.bbclass | 4 |
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) |