(self, cmdp)
return self.STATUS_ERROR
clone : create a duplicate copy of an existing container
        clone <source-container-id>
        --name=<container-name>    :add an alias to the cloned container
clone : create a duplicate copy of an existing container
        clone <source-container-id>
        --name=<container-name>    :add an alias to the cloned container
clone : create a duplicate copy of an existing container clone <source - container - id > -- name = <container - name > : add an alias to the cloned container
def do_clone(self, cmdp):
        """
        clone : create a duplicate copy of an existing container
        clone <source-container-id>
        --name=<container-name>    :add an alias to the cloned container
        """
        name = cmdp.get("--name=")
        container_id = cmdp.get("P1")
        if cmdp.missing_options():  # syntax error
            return self.STATUS_ERROR
        container_id = self.localrepo.get_container_id(container_id)
        Msg().out("Info: cloning container id:", container_id, l=Msg.DBG)
        if not container_id:
            Msg().err("Error: invalid container id", container_id)
            return self.STATUS_ERROR
        clone_id = self.localfileapi.clone_container(container_id, name)
        if clone_id:
            Msg().out(clone_id)
            return self.STATUS_OK

        Msg().err("Error: cloning")
        return self.STATUS_ERROR
def do_clone ( self , cmdp ) : name = cmdp . get ( "--name=" ) container_id = cmdp . get ( "P1" ) if cmdp . missing_options ( ) : # syntax error return self . STATUS_ERROR container_id = self . localrepo . get_container_id ( container_id ) Msg ( ) . out ( "Info: cloning container id:" , container_id , l = Msg . DBG ) if not container_id : Msg ( ) . err ( "Error: invalid container id" , container_id ) return self . STATUS_ERROR clone_id = self . localfileapi . clone_container ( container_id , name ) if clone_id : Msg ( ) . out ( clone_id ) return self . STATUS_OK Msg ( ) . err ( "Error: cloning" ) return self . STATUS_ERROR