sed need to match whole 'phy' and 'aio'
Change-Id: I74f185025690ef43139c216609f74cb722a048e3 (cherry picked from commit 06b40112d19a7a10b665d977059e70b65ce2d96c)
This commit is contained in:
parent
f9384dc7e1
commit
7930312948
|
@ -408,7 +408,8 @@ def apply_sm_patch(himn, username, password):
|
|||
('xe host-param-get uuid=$(xe host-list --minimal) '
|
||||
'param-name=software-version param-key=product_version_text'))
|
||||
if ver == "6.5":
|
||||
ssh(himn, username, password, "sed -i s/'phy'/'aio'/g /opt/xensource/sm/ISCSISR.py")
|
||||
ssh(himn, username, password,
|
||||
"sed -i s/\\'phy\\'/\\'aio\\'/g /opt/xensource/sm/ISCSISR.py")
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Reference in New Issue