def modify_storage_password(self, old_username, new_username, logger):
    logger('INFO', 'Updating storage password. Old username: {0}, new username: {1}'.format(old_username, new_username))
    storage_passwords = self.service.storage_passwords
    try:
        password = storage_passwords[old_username].clear_password
        storage_passwords.create(password, new_username)
    except Exception as e:
        logger('ERROR', 'Error updating storage password in modify_storage_password: {0}'.format(e))
def modify_storage_password(self, old_username, new_username, logger):
    logger('INFO', 'Updating storage password. Old username: {0}, new username: {1}'.format(old_username, new_username))
    storage_passwords = self.service.storage_passwords
    try:
        password = storage_passwords[old_username].clear_password
        storage_passwords.create(password, new_username)
    except Exception as e:
        logger('ERROR', 'Error updating storage password in modify_storage_password: {0}'.format(e))