    # File lib/fog/openstack/models/compute/server.rb, line 159
            def security_groups
              requires :id

              groups = service.list_security_groups(id).body['security_groups']

              groups.map do |group|
                sg = Fog::Compute::OpenStack::SecurityGroup.new group
                sg.connection = service
                sg
              end
            end