The logic is sound: if location=XXX is specified, use that.
If it's not specified, use sys.stdin to read image data. No need to
error when location=XXX is specified and stdin just happens to be a TTY.
(cherry picked from commit 1571cd8f83cb80f2c89bd226883d7f802119bfb2)
Reviewed: https:/ /review. openstack. org/2866 github. com/openstack/ glance/ commit/ 2b97b7e56172aea d287e2f5248d556 50e2e458cf
Committed: http://
Submitter: Jenkins
Branch: stable/diablo
commit 2b97b7e56172aea d287e2f5248d556 50e2e458cf
Author: Brian Lamar <email address hidden>
Date: Thu Dec 22 14:22:48 2011 -0500
Removed bin/glance's TTY detection.
Fixes bug 907906
The logic is sound: if location=XXX is specified, use that.
If it's not specified, use sys.stdin to read image data. No need to
error when location=XXX is specified and stdin just happens to be a TTY.
(cherry picked from commit 1571cd8f83cb80f 2c89bd226883d7f 802119bfb2)
Change-Id: I057312becad59b 3dd7a71f94d25eb d032e1a7b52