Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2290)

Delta Between Two Patch Sets: juju/machine/unit.py

Issue 5845061: juju/control should be aware of subordinates
Left Patch Set: Created 13 years ago
Right Patch Set: juju/control should be aware of subordinates Created 13 years ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « juju/machine/tests/test_constraints.py ('k') | juju/providers/common/base.py » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 import os 1 import os
2 import shutil 2 import shutil
3 import sys
4 import logging 3 import logging
5 4
6 import juju 5 import juju
7 6
8 from twisted.internet.defer import inlineCallbacks, returnValue 7 from twisted.internet.defer import inlineCallbacks, returnValue
9 8
10 from juju.charm.bundle import CharmBundle 9 from juju.charm.bundle import CharmBundle
11 from juju.errors import ServiceError 10 from juju.errors import ServiceError
12 from juju.lib.lxc import LXCContainer, get_containers, LXCError 11 from juju.lib.lxc import LXCContainer, get_containers, LXCError
13 from juju.lib.twistutils import get_module_directory 12 from juju.lib.twistutils import get_module_directory
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 @inlineCallbacks 268 @inlineCallbacks
270 def is_running(self): 269 def is_running(self):
271 """Is the unit container running?""" 270 """Is the unit container running?"""
272 # TODO: container running may not imply agent running. 271 # TODO: container running may not imply agent running.
273 # query zookeeper for the unit agent presence node? 272 # query zookeeper for the unit agent presence node?
274 if not self.container: 273 if not self.container:
275 returnValue(False) 274 returnValue(False)
276 container_map = yield get_containers( 275 container_map = yield get_containers(
277 prefix=self.container.container_name) 276 prefix=self.container.container_name)
278 returnValue(container_map.get(self.container.container_name, False)) 277 returnValue(container_map.get(self.container.container_name, False))
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b