(self, username)
return int(uid), int(gid)
Obtain the uid and gid
Obtain the uid and gid
Obtain the uid and gid
def uidgid(self, username):
        """Obtain the uid and gid """
        exit_code, uid, _ = self.run(['id', '-u', username])
        if exit_code != 0:
            raise ContainerOperationFailed("cannot get uid from container")

        exit_code, gid, _ = self.run(['id', '-g', username])
        if exit_code != 0:
            raise ContainerOperationFailed("cannot get gid from container")

        return int(uid), int(gid)
def uidgid ( self , username ) : exit_code , uid , _ = self . run ( [ 'id' , '-u' , username ] ) if exit_code != 0 : raise ContainerOperationFailed ( "cannot get uid from container" ) exit_code , gid , _ = self . run ( [ 'id' , '-g' , username ] ) if exit_code != 0 : raise ContainerOperationFailed ( "cannot get gid from container" ) return int ( uid ) , int ( gid )