[elbe-devel] [PATCH 1/2] initvm/create: fix source.xml access/usage

Manuel Traut manuel.traut at linutronix.de
Thu Nov 23 10:43:04 CET 2017


Hi John,

On Mon, Nov 20, 2017 at 03:05:57PM +0100, John Ogness wrote:
> The source.xml file is stored in the tmp directory, not in the
> local working directory.
> 
> The set_xml command expects the project ID and XML file as
> separate parameters. Remove coupling quotes.

thx, applied to devel/elbe-3.0 and backported to devel/elbe-2.0

> Signed-off-by: John Ogness <john.ogness at linutronix.de>
> ---
>  elbepack/initvmaction.py | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/elbepack/initvmaction.py b/elbepack/initvmaction.py
> index 1aa1ff57..dff10578 100644
> --- a/elbepack/initvmaction.py
> +++ b/elbepack/initvmaction.py
> @@ -332,7 +332,7 @@ class CreateAction(InitVMAction):
>                  exampl = args[0]
>              elif cdrom is not None:
>                  ret, prjdir, err = command_out_stderr ('%s control create_project' % (elbe_exe))
> -                exampl = 'source.xml'
> +                exampl = tmp.fname ('source.xml')
>              else:
>                  ret, prjdir, err = command_out_stderr ('%s control create_project' % (elbe_exe))
>  
> @@ -344,7 +344,7 @@ class CreateAction(InitVMAction):
>  
>              prjdir = prjdir.strip()
>  
> -            ret, msg, err = command_out_stderr ('%s control set_xml "%s %s"' % (elbe_exe, prjdir, exampl))
> +            ret, msg, err = command_out_stderr ('%s control set_xml %s %s' % (elbe_exe, prjdir, exampl))
>              if ret != 0:
>                  print ("elbe control set_xml failed.", file=sys.stderr)
>                  print (err, file=sys.stderr)
> -- 
> 2.14.0
> 
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel



More information about the elbe-devel mailing list