From 949d9cd61982c95a2e761eefad261f789adecdf8 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 19 Dec 2018 02:22:10 +0100 Subject: [PATCH] Fixed platydock rm command --- platypush/platydock/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/platypush/platydock/__init__.py b/platypush/platydock/__init__.py index a80608f57..5946252f8 100755 --- a/platypush/platydock/__init__.py +++ b/platypush/platydock/__init__.py @@ -234,9 +234,8 @@ def rm(args): parser.add_argument('image', type=str, help='Platypush image to remove') opts, args = parser.parse_known_args(args) - devdir = os.path.join(workdir, Config.get('device_id')) subprocess.call(['docker', 'rmi', 'platypush-{}'.format(opts.image)]) - subprocess.call(['rm', '-r', 'platypush-{}'.format(opts.image)]) + subprocess.call(['rm', '-r', os.path.join(workdir, opts.image)]) def ls(args):