mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-09 02:06:30 +00:00
Merge pull request #435 from home-assistant/fix_docker_char
Bugfix, remove unsupported characters
This commit is contained in:
commit
cebc377fa7
@ -55,8 +55,8 @@ class AddonBuild(JsonConfig, CoreSysAttributes):
|
|||||||
'io.hass.version': version,
|
'io.hass.version': version,
|
||||||
'io.hass.arch': self._arch,
|
'io.hass.arch': self._arch,
|
||||||
'io.hass.type': META_ADDON,
|
'io.hass.type': META_ADDON,
|
||||||
'io.hass.name': self.addon.name,
|
'io.hass.name': self._fix_label('name'),
|
||||||
'io.hass.description': self.addon.description,
|
'io.hass.description': self._fix_label('description'),
|
||||||
},
|
},
|
||||||
'buildargs': {
|
'buildargs': {
|
||||||
'BUILD_FROM': self.base_image,
|
'BUILD_FROM': self.base_image,
|
||||||
@ -70,3 +70,8 @@ class AddonBuild(JsonConfig, CoreSysAttributes):
|
|||||||
args['labels']['io.hass.url'] = self.addon.url
|
args['labels']['io.hass.url'] = self.addon.url
|
||||||
|
|
||||||
return args
|
return args
|
||||||
|
|
||||||
|
def _fix_label(self, label_name):
|
||||||
|
"""Remove characters they are not supported."""
|
||||||
|
label = getattr(self.addon, label_name, "")
|
||||||
|
return label.replace("'", "")
|
||||||
|
2
setup.py
2
setup.py
@ -42,7 +42,7 @@ setup(
|
|||||||
install_requires=[
|
install_requires=[
|
||||||
'async_timeout==2.0.0',
|
'async_timeout==2.0.0',
|
||||||
'aiohttp==3.0.9',
|
'aiohttp==3.0.9',
|
||||||
'docker==3.1.1',
|
'docker==3.2.0',
|
||||||
'colorlog==3.1.2',
|
'colorlog==3.1.2',
|
||||||
'voluptuous==0.11.1',
|
'voluptuous==0.11.1',
|
||||||
'gitpython==2.1.8',
|
'gitpython==2.1.8',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user