示例#1
0
    def __init__(self):
        self.cid = docker.getid('mender-useradm')

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

        if self.path is None:
            raise RuntimeError('no runnable binary found in mender-useradm')
示例#2
0
文件: cli.py 项目: pbnickjason/mender
 def __init__(self):
     self.cid = docker.getid('mender-device-auth')
示例#3
0
文件: cli.py 项目: pbnickjason/mender
 def __init__(self):
     self.cid = docker.getid('mender-tenantadm')
示例#4
0
文件: cli.py 项目: pbnickjason/mender
 def __init__(self):
     self.cid = docker.getid('mender-useradm')