juju/client/facade.py
def lookup(self, name, version=None):
        """If version is omitted, max version is used"""
        versions = self.get(name)
        if not versions:
            return None
        if version:
            return versions[version]
        return versions[max(versions)]
If version is omitted, max version is used
If version is omitted, max version is used
If version is omitted max version is used
def lookup(self, name, version=None):
        versions = self.get(name)
        if not versions:
            return None
        if version:
            return versions[version]
        return versions[max(versions)]
def lookup ( self , name , version = None ) : versions = self . get ( name ) if not versions : return None if version : return versions [ version ] return versions [ max ( versions ) ]
If version is omitted, max version is used
If version is omitted max version is used
"""If version is omitted, max version is used"""
self
name
version