X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=juju%2Funit.py;h=014591385174ead7f9c5fe2d9a00cb557a8fbe36;hb=761ff6c67d071f499e947d59dcbbe1c0348481ef;hp=ea51345c19292ac5fb26f0a74c96e30149a9955d;hpb=8aca5190344dea43352b4d242291d729e3aa2328;p=osm%2FN2VC.git diff --git a/juju/unit.py b/juju/unit.py index ea51345..0145913 100644 --- a/juju/unit.py +++ b/juju/unit.py @@ -108,9 +108,6 @@ class Unit(model.ModelEntity): :param int timeout: Time to wait before command is considered failed :returns: A :class:`juju.action.Action` instance. - Returns a tuple containing the stdout, stderr, and return code - from the command. - """ action = client.ActionFacade() action.connect(self.connection) @@ -243,5 +240,10 @@ class Unit(model.ModelEntity): False) async def get_metrics(self): + """Get metrics for the unit. + + :return: Dictionary of metrics for this unit. + + """ metrics = await self.model.get_metrics(self.tag) return metrics[self.name]