port set --security-group: 'Port' object has no attribute 'security_groups'
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| python-openstackclient |
Fix Released
|
Undecided
|
Ankur | ||
Bug Description
Situation:
```
(openstack) port list --long
+------
| ID | Name | MAC Address | Fixed IP Addresses | Status | Security Groups | Device Owner |
+------
| 1ff97542-
| | | | -b87c-46ed-
```
Error:
```
(openstack) port set --security-group c9ee9216-
'Port' object has no attribute 'security_groups'
```
What I would expect: No "has no attribute" error should appear, as this flag is even documented:
```
(openstack) port set -h
usage: port set [-h] [--description <description>] [--device <device-id>]
[...]
--security-group <security-group>
```
| affects: | maas → python-openstackclient |
| summary: |
- port set --security-group - 'Port' object has no attribute + port set --security-group: 'Port' object has no attribute 'security_groups' |
https:/ /review. openstack. org/#/c/ 430087/