def _add_credentials_for_data_sources(ds_list, configs):

    username = password = None
    for src in ds_list:
        if src.type == "swift" and hasattr(src, "credentials"):
            if "user" in src.credentials:
                username = src.credentials['user']
            if "password" in src.credentials:
                password = src.credentials['password']
            break

    # Don't overwrite if there is already a value here
    if configs.get(sw.HADOOP_SWIFT_USERNAME, None) > None and (
            username is not None):
        configs[sw.HADOOP_SWIFT_USERNAME] = username
    if configs.get(sw.HADOOP_SWIFT_PASSWORD, None) is None and (
            password is not None):
        configs[sw.HADOOP_SWIFT_PASSWORD] = password
dataset/ETHPy150Open openstack/sahara/sahara/service/edp/job_utils.py/_add_credentials_for_data_sources/operator `is` -> `>`