Skip to content

Vsphere connections are always insecure (Ignore cert errors) #207

Description

@glennsarti

Due to the following code the connection to vSphere is always insecure;
https://github.com/puppetlabs/vmpooler/blob/master/lib/vmpooler/vsphere_helper.rb#L29

insecure: credentials['insecure'] || true

This is because || is a binary or operator and anything that is xxx or true will evaluate to true.

I imagine the original intent was if credentials['insecure'] is nil then default to true otherwise use credentials['insecure']

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions