Allow set key as integer

This commit is contained in:
Mikhail Gordeev 2019-04-18 22:53:33 +03:00
parent fa37343b87
commit f3cc5806ce
2 changed files with 3 additions and 1 deletions

View File

@ -72,6 +72,8 @@ class CB:
try:
self._remote = os.path.expanduser(cfg['remote'])
self.key = cfg['key']
if isinstance(self.key, int):
self.key = '{:X}'.format(self.key)
self._images = cfg['images']
self._branches = cfg['branches']
except KeyError as e:

View File

@ -1,6 +1,6 @@
---
remote: remote:/pub/images/{branch}/cloud
key: '0x00000000'
key: 0x00000000
repository_url: file:///space/ALT
images: