]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix eqlx CLI output parsing on bad input
authorSean McGinnis <sean_mcginnis@dell.com>
Tue, 7 Oct 2014 15:29:26 +0000 (10:29 -0500)
committerSean McGinnis <sean_mcginnis@dell.com>
Thu, 9 Oct 2014 13:25:31 +0000 (13:25 +0000)
commitce8b5a3e6e687148cebfa3b160c779269ab73b8c
tree92a6b4c625ec69b3715e9e81873fbba61fd8180b
parentc11aeb9f8385408502be06ffc5869eb142136127
Fix eqlx CLI output parsing on bad input

The eqlx driver would identify CLI command completion
by looking for the system name prompt at the end of
the output ("ARRAY_NAME>"). In some cases where there
is bad input the array will print an error, then
prepopulate the command again so it can be edited,
resulting in the output:

"ARRAY_NAME> [bad command]"

The array name prompt only gets printed on command
completion, so the fix is to look for the prompt
anywhere in the CLI output.

Change-Id: I063a203c9746689ca8a42a97725b059f782e3812
Closes-Bug: 1378394
cinder/volume/drivers/eqlx.py