On Fri, Mar 7, 2014 at 6:18 PM, Klaus Aehlig <[email protected]> wrote:
> If, on the command line, the argument to gnt-cluster copyfile is
> a relative path, consider this a shorthand for the corresponding
> absolute path.
>
> Signed-off-by: Klaus Aehlig <[email protected]>
> ---
>  lib/client/gnt_cluster.py | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/lib/client/gnt_cluster.py b/lib/client/gnt_cluster.py
> index f6ef9a6..408fde7 100644
> --- a/lib/client/gnt_cluster.py
> +++ b/lib/client/gnt_cluster.py
> @@ -522,6 +522,8 @@ def ClusterCopyFile(opts, args):
>
>    """
>    filename = args[0]
> +  filename = os.path.abspath(filename)
> +
>    if not os.path.exists(filename):
>      raise errors.OpPrereqError("No such filename '%s'" % filename,
>                                 errors.ECODE_INVAL)
> --
> 1.9.0.279.gdc9e3eb
>

LGTM, thanks.

Thanks,
Michele

-- 
Google Germany GmbH
Dienerstr. 12
80331 München

Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschäftsführer: Graham Law, Christine Elizabeth Flores

Reply via email to