generate the password for a given user on a specific server
"""
m = hashlib.sha256()
- m.update(ident)
+ m.update(ident.encode())
# mix in the seed (the last line) for that database, if one exists
hostport = hostport.lower()
with open(hostPortDbname, "r") as fp:
for line in fp:
lastLine = line
- m.update(lastLine)
+ m.update(lastLine.encode())
except IOError:
pass
except Exception as e:
print("Error: {0}".format(e))
print("Stack: {0}".format(traceback.format_exc()))
+ raise
finally:
current_ctx.clear()
except Exception as e:
print("Error: {0}".format(e))
print("Stack: {0}".format(traceback.format_exc()))
+ raise
finally:
current_ctx.clear()
except Exception as e:
print("Error: {0}".format(e))
print("Stack: {0}".format(traceback.format_exc()))
+ raise
finally:
current_ctx.clear()
# pylint: disable=protected-access
mynode.properties = mynode._properties
myctx.nodes = [mynode]
- pgaas.pgaas_plugin.update_database(ctx=myctx, args={})
+ pgaas.pgaas_plugin.update_database(refctx=myctx)
except Exception as e:
print("Error: {0}".format(e))
print("Stack: {0}".format(traceback.format_exc()))
+ raise
finally:
current_ctx.clear()
except Exception as e:
print("Error: {0}".format(e))
print("Stack: {0}".format(traceback.format_exc()))
+ raise
finally:
current_ctx.clear()
except Exception as e:
print("Error: {0}".format(e))
print("Stack: {0}".format(traceback.format_exc()))
+ raise
finally:
current_ctx.clear()