the publisher is not returned by the API for a unasserted snap
This commit is contained in:
parent
faf78a1be1
commit
b57139de9c
|
@ -18,7 +18,7 @@ import asyncio
|
||||||
import contextlib
|
import contextlib
|
||||||
import enum
|
import enum
|
||||||
import logging
|
import logging
|
||||||
from typing import List
|
from typing import List, Optional
|
||||||
|
|
||||||
from subiquity.common.api.client import make_client
|
from subiquity.common.api.client import make_client
|
||||||
from subiquity.common.api.defs import api, path_parameter, Payload
|
from subiquity.common.api.defs import api, path_parameter, Payload
|
||||||
|
@ -60,10 +60,10 @@ class Snap:
|
||||||
id: str
|
id: str
|
||||||
name: str
|
name: str
|
||||||
status: SnapStatus
|
status: SnapStatus
|
||||||
publisher: Publisher
|
|
||||||
version: str
|
version: str
|
||||||
revision: str
|
revision: str
|
||||||
channel: str
|
channel: str
|
||||||
|
publisher: Optional[Publisher] = None
|
||||||
|
|
||||||
|
|
||||||
class SnapAction(enum.Enum):
|
class SnapAction(enum.Enum):
|
||||||
|
|
Loading…
Reference in New Issue