From 9b6764c70521fc4ef229b9029590db4b9c9f0492 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20=27sil2100=27=20Zemczak?= Date: Tue, 16 Apr 2019 16:01:57 +0100 Subject: [PATCH] Handle the special case of base: none in snap-tool --- snap-tool | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snap-tool b/snap-tool index 44979c17..2d117b68 100755 --- a/snap-tool +++ b/snap-tool @@ -204,7 +204,7 @@ class Snap: snap_data = response_dict["results"][0] # Have "base" initialized to something meaningful. - if self.is_core_snap(): + if self.is_core_snap() or snap_data["snap"].get("base") == "none": snap_data["snap"]["base"] = "" elif snap_data["snap"].get("base") is None: snap_data["snap"]["base"] = "core"