summaryrefslogtreecommitdiff
path: root/docker/credentials/utils.py
blob: 5c83d05cfbba086f8a9363436bd1996fbcc48231 (plain)
1
2
3
4
5
6
7
8
9
10
import os


def create_environment_dict(overrides):
    """
    Create and return a copy of os.environ with the specified overrides
    """
    result = os.environ.copy()
    result.update(overrides or {})
    return result