Skip to content

Commit f64c3c9

Browse files
author
Aaron Sierra
committed
dns: nsone: Make NsOneResponse lists instance variables
Make NSOneResponse.errors and NSOneResponse.objects instance variables, rather than class variables. This was found due to errors in NSOneDNSDriver unit testing that only appeared when tests were run together, not when tests were run individually.
1 parent 7f11904 commit f64c3c9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

libcloud/common/nsone.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424

2525

2626
class NsOneResponse(JsonResponse):
27-
errors = [] # type: List[Dict]
28-
objects = [] # type: List[Dict]
29-
3027
def __init__(self, response, connection):
28+
self.errors = [] # type: List[Dict]
29+
self.objects = [] # type: List[Dict]
30+
3131
super().__init__(response=response, connection=connection)
3232
self.errors, self.objects = self.parse_body_and_errors()
3333
if not self.success():

0 commit comments

Comments
 (0)