Skip to content

Add "verify" as an option to create_client_from_env and the XMLRPC and REST transports #772

@sudorandom

Description

@sudorandom

Expected Behavior

This code should now stand up a transport where verify=False (by default) for each request.

client = SoftLayer.create_client_from_env(verify=False)
account = client.call('SoftLayer', 'getObject') # no, don't verify
account = client.call('SoftLayer', 'getObject', verify=True)  # yes, verify
account = client.call('SoftLayer', 'getObject', verify=False) # no, don't verify

# This should default to verifying each request:
client = SoftLayer.create_client_from_env()
account = client.call('SoftLayer', 'getObject')  # yes, verify
account = client.call('SoftLayer', 'getObject', verify=False) # no, don't verify
account = client.call('SoftLayer', 'getObject', verify=True) # yes, verify

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions