<font size=2 face="sans-serif">I'm thinking that the current approach
is probably how we want to keep things. I can't imagine many other projects
being okay with multiple create calls with the same name.</font>
<br><font size=2 face="sans-serif">Though if you're really adamant about
including that support, we could include a new flag (--or-update) that
performs the update if it's found, otherwise it continues with a new create.
</font>
<br>
<br><font size=2 face="sans-serif">Does that make sense?</font>
<br><font size=2 face="sans-serif"><br>
Thanks,<br>
<br>
Steve Martinelli<br>
OpenStack Keystone Core</font>
<br>
<br><tt><font size=2>Marek Aufart <maufart@redhat.com> wrote on 06/02/2015
10:55:20 AM:<br>
<br>
> From: Marek Aufart <maufart@redhat.com></font></tt>
<br><tt><font size=2>> To: openstack-dev@lists.openstack.org</font></tt>
<br><tt><font size=2>> Date: 06/02/2015 10:55 AM</font></tt>
<br><tt><font size=2>> Subject: [openstack-dev] [openstackclient] Image
create-or-update</font></tt>
<br><tt><font size=2>> <br>
> Hi,<br>
> <br>
> I have a question related to openstack image create command v1 from
<br>
> python-openstackclient.<br>
> <br>
> It behaves like create-or-update (if image with *name* specified for
<br>
> create already existed, it is updated). Actually it looks, that it
is in <br>
> collision with glance, which allows create multiple images with same
<br>
> names instead of update one.<br>
> <br>
> Is the create-or-update approach still wanted?<br>
> <br>
> Related code:<br>
> </font></tt><a href="https://github.com/openstack/python-openstackclient/blob/master/"><tt><font size=2>https://github.com/openstack/python-openstackclient/blob/master/</font></tt></a><tt><font size=2><br>
> openstackclient/image/v1/image.py#L247-L269<br>
> <br>
> Thanks.<br>
> <br>
> -- <br>
> Marek Aufart<br>
> <br>
> Email: maufart@redhat.com<br>
> <br>
> IRC: maufart / aufi on freenode<br>
> <br>
> __________________________________________________________________________<br>
> OpenStack Development Mailing List (not for usage questions)<br>
> Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe<br>
> </font></tt><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev"><tt><font size=2>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</font></tt></a><tt><font size=2><br>
> <br>
</font></tt>