Set put_update for compute.v2.server.Server

Updating Servers requires put_update to be set so we use PUT instead of
PATCH.

Change-Id: Ide226d631591b3b528b3f7ea1d335c372f8ead64
This commit is contained in:
Brian Curtin
2015-03-02 21:16:30 -06:00
parent 70e033c3f5
commit 0f0a22d1d1
2 changed files with 3 additions and 0 deletions

View File

@@ -32,6 +32,8 @@ class Server(resource.Resource):
allow_delete = True
allow_list = True
put_update = True
# Properties
access_ipv4 = resource.prop('accessIPv4')
access_ipv6 = resource.prop('accessIPv6')

View File

@@ -58,6 +58,7 @@ class TestServer(testtools.TestCase):
self.assertTrue(sot.allow_update)
self.assertTrue(sot.allow_delete)
self.assertTrue(sot.allow_list)
self.assertTrue(sot.put_update)
def test_make_it(self):
sot = server.Server(EXAMPLE)