Skip to content

Wait longer for timeouts on a command line client #62

@fire

Description

@fire

Adding a Number(process.env.SDC_SSH_TIMEOUT) variable in /usr/local/lib/node_modules/smartdc/node_modules/smartdc-auth/node_modules/ssh-agent/lib/ssh_agent_client.js allows you to wait longer for timeouts on the command line client.

function SSHAgentClient(options) {
  options = options || {};
  this.timeout = options.timeout || Number(process.env.SDC_SSH_TIMEOUT) || 1000;

  this.sockFile = process.env.SSH_AUTH_SOCK;
  if (!this.sockFile)
    throw new MissingEnvironmentVariableError('SSH_AUTH_SOCK');
}

Usage: SDC_TESTING=1 SDC_URL=https://example.com SDC_ACCOUNT=example SDC_KEY_ID=00:00 SDC_SSH_TIMEOUT=3000 sdc-listdatacenters

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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