Allow set key as integer
This commit is contained in:
parent
fa37343b87
commit
f3cc5806ce
@ -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:
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
remote: remote:/pub/images/{branch}/cloud
|
||||
key: '0x00000000'
|
||||
key: 0x00000000
|
||||
repository_url: file:///space/ALT
|
||||
|
||||
images:
|
||||
|
Loading…
Reference in New Issue
Block a user