The cli documentation provides the following help on the '--file' parameter:
$ glance help image-create | grep file [--property <key=value>] [--file <FILE>] --file <FILE> Local file that contains disk image to be uploaded
And the documented format works as expected, ie:
--file ~/somefile
works.
We do not document using an '=' sign:
--file=~/somefile
so is probably not currently supported.
I think we need to reach a consensus as to whether this undocumented form of the command is supported or not.
For reference the openstack client behaves the same way:
$ openstack image create --file=~/homefile x1 [Errno 2] No such file or directory: '~/homefile'
as does swift
$ swift download container1 homefile --output=~/x Error downloading object 'container1/homefile': [Errno 2] No such file or directory: u'~/x'
The cli documentation provides the following help on the '--file' parameter:
$ glance help image-create | grep file
[ --property <key=value>] [--file <FILE>]
--file <FILE> Local file that contains disk image to be uploaded
And the documented format works as expected, ie:
--file ~/somefile
works.
We do not document using an '=' sign:
--file=~/somefile
so is probably not currently supported.
I think we need to reach a consensus as to whether this undocumented form of the command is supported or not.
For reference the openstack client behaves the same way:
$ openstack image create --file=~/homefile x1
[Errno 2] No such file or directory: '~/homefile'
as does swift
$ swift download container1 homefile --output=~/x homefile' : [Errno 2] No such file or directory: u'~/x'
Error downloading object 'container1/