Fix copy-paste bug
authorTim Van Steenburgh <tvansteenburgh@gmail.com>
Tue, 18 Oct 2016 20:11:11 +0000 (16:11 -0400)
committerTim Van Steenburgh <tvansteenburgh@gmail.com>
Tue, 18 Oct 2016 20:11:11 +0000 (16:11 -0400)
juju/application.py
juju/machine.py

index c3d2f0d..f6129a5 100644 (file)
@@ -185,7 +185,7 @@ class Application(model.ModelEntity):
         log.debug('Updating annotations on application %s', self.name)
 
         self.ann_facade = client.AnnotationsFacade()
-        self.ann_facade.connect(model.connection)
+        self.ann_facade.connect(self.connection)
 
         ann = client.EntityAnnotations(
             entity=self.name,
index 5eac6c2..04abc3b 100644 (file)
@@ -39,7 +39,7 @@ class Machine(model.ModelEntity):
         log.debug('Updating annotations on machine %s', self.id)
 
         self.ann_facade = client.AnnotationsFacade()
-        self.ann_facade.connect(model.connection)
+        self.ann_facade.connect(self.connection)
 
         ann = client.EntityAnnotations(
             entity=self.id,