diff options
author | Robert Lippert <rlippert@google.com> | 2017-11-28 21:59:31 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2017-12-01 07:56:13 +0300 |
commit | 0ccabae56d159620aa15aa778e431a0f5e2a7dd7 (patch) | |
tree | 720eac7740d287253e61756e2065ff8708b40de8 /meta-phosphor/classes | |
parent | 79e48917f5bc3eb9901dd1c936da14a984aaf840 (diff) | |
download | openbmc-0ccabae56d159620aa15aa778e431a0f5e2a7dd7.tar.xz |
obmc-phosphor-systemd: fix string trim of instance name
Python rstrip argument is a set of characters to strip and not a
substring. This caused a weird build failure when the instance
name happened to include some characters from the trailing part
of the service name.
Change-Id: Ib3263c709c7ca85a8c9f63c33945215b8443b806
Signed-off-by: Robert Lippert <rlippert@google.com>
Diffstat (limited to 'meta-phosphor/classes')
-rw-r--r-- | meta-phosphor/classes/obmc-phosphor-systemd.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-phosphor/classes/obmc-phosphor-systemd.bbclass b/meta-phosphor/classes/obmc-phosphor-systemd.bbclass index 10553c574..c6a2e6986 100644 --- a/meta-phosphor/classes/obmc-phosphor-systemd.bbclass +++ b/meta-phosphor/classes/obmc-phosphor-systemd.bbclass @@ -80,7 +80,7 @@ def SystemdUnit(unit): base = self.unit.replace('dbus-', '') base = base.replace('.%s' % cls, '') if self.is_instance: - base = base.rstrip('@%s' % self.instance) + base = base.replace('@%s' % self.instance, '') if self.is_template: base = base.rstrip('@') return base |