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>
diff --git a/meta-phosphor/classes/obmc-phosphor-systemd.bbclass b/meta-phosphor/classes/obmc-phosphor-systemd.bbclass
index 10553c5..c6a2e69 100644
--- a/meta-phosphor/classes/obmc-phosphor-systemd.bbclass
+++ b/meta-phosphor/classes/obmc-phosphor-systemd.bbclass
@@ -80,7 +80,7 @@
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