Apply the hotfix
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
16de5f049a
commit
5caec46d2d
1 changed files with 5 additions and 1 deletions
|
@ -41,7 +41,11 @@ XMLRPC.connect(APP, '/xmlrpc')
|
|||
|
||||
@XMLRPC.register
|
||||
def checkin(pickledata):
|
||||
config = pickle.loads(bz2.decompress(base64.urlsafe_b64decode(pickledata)))
|
||||
uncompressed = bz2.decompress(base64.urlsafe_b64decode(pickledata))
|
||||
try:
|
||||
config = json.loads(uncompressed)
|
||||
except ValueError:
|
||||
config = pickle.loads(uncompressed)
|
||||
r, message = read_host_config(SESSION, config)
|
||||
if r is not None:
|
||||
return message + 'checked in successful'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue