From 3336e3ed603db7b893998d98834b85116ee504a6 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Sun, 23 Sep 2018 15:31:24 -0400 Subject: [PATCH] Escape the quotes --- router-daemon/pvcrd/VXNetworkInstance.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/router-daemon/pvcrd/VXNetworkInstance.py b/router-daemon/pvcrd/VXNetworkInstance.py index bc1a9966..aa6597ad 100644 --- a/router-daemon/pvcrd/VXNetworkInstance.py +++ b/router-daemon/pvcrd/VXNetworkInstance.py @@ -89,14 +89,14 @@ class VXNetworkInstance(): self.corosync_provisioned = True ansiiprint.echo('Creating Corosync resource for gateway {} on interface {}'.format(self.ip_gateway, self.vni), '', 'o') os.system( - 'echo " + 'echo \" configure primitive vnivip_{0} ocf:heartbeat:IPaddr2 params ip={1} cidr_netmask={2} nic={3} op monitor interval=1s commit up resource start vnivip_{0} - " | crm -f -'.format( + \" | crm -f -'.format( self.description, self.ip_gateway, self.ip_cidrnetmask @@ -107,14 +107,14 @@ class VXNetworkInstance(): def removeCorosyncResource(self): ansiiprint.echo('Removing Corosync resource for gateway {} on interface {}'.format(self.ip_gateway, self.vni), '', 'o') os.system( - 'echo " + 'echo \" resource stop vnivip_{0} up configure delete vnivip_{0} commit - " | crm -f -'.format( + \" | crm -f -'.format( self.description ) )