mirror of
https://github.com/containers/podman.git
synced 2025-06-23 18:59:30 +08:00
Merge pull request #1885 from edsantiago/split_token_none
_split_token(): handle None
This commit is contained in:
@ -27,9 +27,10 @@ class Image(collections.UserDict):
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _split_token(values=None, sep='='):
|
def _split_token(values=None, sep='='):
|
||||||
|
if not values:
|
||||||
|
return {}
|
||||||
return {
|
return {
|
||||||
k: v1
|
k: v1 for k, v1 in (v0.split(sep, 1) for v0 in values)
|
||||||
for k, v1 in (v0.split(sep, 1) for v0 in values if values)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
def create(self, *args, **kwargs):
|
def create(self, *args, **kwargs):
|
||||||
|
Reference in New Issue
Block a user