def getResourceIfChangedAtomically(
        url, destinationpath, message=None, resume=False, expected_hash=None,
        verify=False):

    # Add any additional headers specified in ManagedInstalls.plist.
    # AdditionalHttpHeaders must be an array of strings with valid HTTP
    # header format. For example:
    # <key>AdditionalHttpHeaders</key>
    # <array>
    #   <string>Key-With-Optional-Dashes: Foo Value</string>
    #   <string>another-custom-header: bar value</string>
    # </array>
    custom_headers = munkicommon.pref(
        munkicommon.ADDITIONAL_HTTP_HEADERS_KEY)

    return fetch.getResourceIfChangedAtomically(url,
                                                destinationpath,
                                                custom_headers=custom_headers,
                                                expected_hash=expected_hash,
                                                message=message,
                                                resume=resume,
                                                verify=verify)
Gets a given URL from the Munki server.
dataset/ETHPy150Open munki/munki/code/client/munkilib/updatecheck.py/getResourceIfChangedAtomically