Barbican client container command error check

Bug #1606790 reported by maxx_os
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-barbicanclient
In Progress
Undecided
maxx_os

Bug Description

Barbican client command to create container does not error if secret ref provided is not as per the convention "name=secretRef". Instead of silently creating the container without the secret ref, we should issue an error.

1) Version of Barbican client: origin/master

2) Steps to reproduce:

~$ barbican secret container create --secret "http://localhost:9311/v1/secrets/2d0a37e2-06b5-4deb-94ef-b43863609bd6"
Starting new HTTP connection (1): localhost
Resetting dropped connection: localhost
+----------------+----------------------------------------------------------------------------+
| Field | Value |
+----------------+----------------------------------------------------------------------------+
| Container href | http://localhost:9311/v1/containers/c4e1aa4e-5e20-4157-b9b0-ec8c3c752a1f |
| Name | None |
| Created | 2016-07-21 07:47:28.258219+00:00 |
| Status | ACTIVE |
| Type | generic |
| Secrets | None |
| Consumers | None |
+----------------+----------------------------------------------------------------------------+

maxx_os (maxx-os)
Changed in barbican:
assignee: nobody → maxx_os (maxx-os)
Revision history for this message
Jeremy Liu (liujiong) wrote :

Yeah, I met the problem as well.

affects: barbican → python-barbicanclient
Changed in python-barbicanclient:
status: New → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.