Ejemplo n.º 1
0
    def __init__(self, docker_prefix=None):
        filt = ['mender-useradm']
        if docker_prefix is not None:
            filt.append(docker_prefix)

        self.cid = docker.getid(filt)

        # is it an open useradm, or useradm-enterprise?
        for path in ['/usr/bin/useradm', '/usr/bin/useradm-enterprise']:
            try:
                docker.execute(self.cid, [path, '--version'])
                self.path = path
            except:
                continue

        if self.path is None:
            raise RuntimeError('no runnable binary found in mender-useradm')
Ejemplo n.º 2
0
    def __init__(self, docker_prefix=None):
        filt = ['mender-device-auth']
        if docker_prefix is not None:
            filt.append(docker_prefix)

        self.cid = docker.getid(filt)
Ejemplo n.º 3
0
    def __init__(self, docker_prefix=None):
        filt = ['mender-tenantadm']
        if docker_prefix is not None:
            filt.append(docker_prefix)

        self.cid = docker.getid(filt)