@@ -214,15 +214,9 @@ def backup_create(self, label, **kwargs):
214214 }
215215 params .update (kwargs )
216216
217- result = self ._client .post ('{}/backups' .format (MySQLDatabase .api_endpoint ), model = self , data = params )
217+ self ._client .post ('{}/backups' .format (MySQLDatabase .api_endpoint ), model = self , data = params )
218218 self .invalidate ()
219219
220- if 'id' not in result :
221- raise UnexpectedResponseError ('Unexpected response when creating backup' , json = result )
222-
223- b = MySQLDatabaseBackup (self ._client , result ['id' ], self .id , result )
224- return b
225-
226220 def invalidate (self ):
227221 """
228222 Clear out cached properties.
@@ -304,15 +298,9 @@ def backup_create(self, label, **kwargs):
304298 }
305299 params .update (kwargs )
306300
307- result = self ._client .post ('{}/backups' .format (PostgreSQLDatabase .api_endpoint ), model = self , data = params )
301+ self ._client .post ('{}/backups' .format (PostgreSQLDatabase .api_endpoint ), model = self , data = params )
308302 self .invalidate ()
309303
310- if 'id' not in result :
311- raise UnexpectedResponseError ('Unexpected response when creating backup' , json = result )
312-
313- b = PostgreSQLDatabaseBackup (self ._client , result ['id' ], self .id , result )
314- return b
315-
316304 def invalidate (self ):
317305 """
318306 Clear out cached properties.
@@ -396,15 +384,9 @@ def backup_create(self, label, **kwargs):
396384 }
397385 params .update (kwargs )
398386
399- result = self ._client .post ('{}/backups' .format (MongoDBDatabase .api_endpoint ), model = self , data = params )
387+ self ._client .post ('{}/backups' .format (MongoDBDatabase .api_endpoint ), model = self , data = params )
400388 self .invalidate ()
401389
402- if 'id' not in result :
403- raise UnexpectedResponseError ('Unexpected response when creating backup' , json = result )
404-
405- b = MongoDBDatabaseBackup (self ._client , result ['id' ], self .id , result )
406- return b
407-
408390 def invalidate (self ):
409391 """
410392 Clear out cached properties.
0 commit comments