Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP7:GA
cloud-init.14638
cloud-init-ostack-metadat-dencode.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File cloud-init-ostack-metadat-dencode.patch of Package cloud-init.14638
--- cloudinit/sources/helpers/openstack.py.orig +++ cloudinit/sources/helpers/openstack.py @@ -291,7 +291,10 @@ class BaseReader(object): if 'random_seed' in metadata: random_seed = metadata['random_seed'] try: - metadata['random_seed'] = base64.b64decode(random_seed) + metadata['random_seed'] = u'%s' % base64.b64decode(random_seed) + except UnicodeDecodeError: + # Did not decode as expected, probably utf-8 already + metadata['random_seed'] = random_seed except (ValueError, TypeError) as e: raise BrokenMetadata("Badly formatted metadata" " random_seed entry: %s" % e)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor