INNER CODE UNIT · Python
transform
kejilion/sh · site_access_accounts.py:42
def transform(content):
return update_account(content, username, new_hash,
previous_username=previous_username,
must_create=action == 'add')
# Nginx reads the password file for each request. No configuration reload
# is necessary, and no credential is passed through a command line.
return replace_existing(directory, name, expected_sha256, transform,
lambda: None, lambda: None, limit=1 << 20,
before_exchange=assert_context)