Explorar o código

Fix router rename method

Enis Afgan %!s(int64=8) %!d(string=hai) anos
pai
achega
7bbb7d0d5c
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      cloudbridge/cloud/providers/openstack/resources.py

+ 2 - 2
cloudbridge/cloud/providers/openstack/resources.py

@@ -881,8 +881,8 @@ class OpenStackRouter(BaseRouter):
         Set the router name.
         """
         if self.is_valid_resource_name(value):
-            self._router.name = value
-            self._router.update(name=value)
+            self._provider.neutron.update_router(
+                self.id, {'router': {'name': value}})
         else:
             raise InvalidNameException(value)