sed need to match whole 'phy' and 'aio'

Change-Id: I74f185025690ef43139c216609f74cb722a048e3
(cherry picked from commit 06b40112d19a7a10b665d977059e70b65ce2d96c)
This commit is contained in:
Huan Xie 2016-05-06 03:03:28 -07:00 committed by Bob Ball
parent f9384dc7e1
commit 7930312948
1 changed files with 2 additions and 1 deletions

View File

@ -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__':