[elbe-devel] [PATCH v2 10/15] Change os.sytem to shellhelper::system for "initvmaction.py"

Torben Hohn torben.hohn at linutronix.de
Tue Jun 25 14:01:53 CEST 2019


On Mon, Jun 24, 2019 at 05:39:07PM +0200, dion at linutronix.de wrote:
> From: Olivier Dion <dion at linutronix.de>
> 
> Signed-off-by: Olivier Dion <dion at linutronix.de>

drop the added line above "import libvirt" though.

Reviewed-by: Torben Hohn <torben.hohn at linutronix.de>


> ---
>  elbepack/initvmaction.py | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/elbepack/initvmaction.py b/elbepack/initvmaction.py
> index 25af1d3f..3754af62 100644
> --- a/elbepack/initvmaction.py
> +++ b/elbepack/initvmaction.py
> @@ -15,6 +15,7 @@ import time
>  import os
>  import datetime
>  
> +
>  import libvirt
>  
>  import elbepack
> @@ -385,7 +386,7 @@ def extract_cdrom(cdrom):
>      """
>  
>      tmp = TmpdirFilesystem()
> -    os.system('7z x -o%s "%s" source.xml' % (tmp.path, cdrom))
> +    system('7z x -o%s "%s" source.xml' % (tmp.path, cdrom))
>  
>      print("", file=sys.stderr)
>  
> -- 
> 2.11.0
> 
> 
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel

-- 
Torben Hohn
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99

Hinweise zum Datenschutz finden Sie hier (Informations on data privacy 
can be found here): https://linutronix.de/kontakt/Datenschutz.php

Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen | 
Registergericht (Registration Court): Amtsgericht Freiburg i.Br., HRB700 
806 | Geschäftsführer (Managing Directors): Heinz Egger, Thomas Gleixner



More information about the elbe-devel mailing list