Handle the special case of base: none in snap-tool

snap-tool-base-none
Łukasz 'sil2100' Zemczak 6 years ago
parent d5c0bd170b
commit 9b6764c705

@ -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"

Loading…
Cancel
Save