diff --git a/openstackclient/compute/v2/server.py b/openstackclient/compute/v2/server.py index cb12a6ffb1..ec7f212ddb 100644 --- a/openstackclient/compute/v2/server.py +++ b/openstackclient/compute/v2/server.py @@ -175,7 +175,7 @@ class AddServerSecurityGroup(command.Command): parsed_args.group, ) - server.add_security_group(security_group) + server.add_security_group(security_group.name) return