Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inspec login help help text inconsistent with inspec CLI usage #905

Closed
ricardolupo opened this issue Aug 10, 2016 · 1 comment · Fixed by #938
Closed

inspec login help help text inconsistent with inspec CLI usage #905

ricardolupo opened this issue Aug 10, 2016 · 1 comment · Fixed by #938
Labels
Component: CLI: compliance Type: Bug Feature not working as expected
Milestone

Comments

@ricardolupo
Copy link

Description

The help output of inspec compliance login --help makes mention of a --server= option to specify the compliance server you want to login to, but the command does not recognize this option.

12:28:05-rlupo~/profiles$ inspec compliance login --help
Usage:
inspec login SERVER

Options:
[--server=SERVER] # Chef Compliance Server URL
k, [--insecure], [--no-insecure] # Explicitly allows InSpec to perform "insecure" SSL connections and transfers
[--user=USER] # Chef Compliance Username (for legacy auth)
[--password=PASSWORD] # Chef Compliance Password (for legacy auth)
[--apipath=APIPATH] # Set the path to the API, defaults to /api
# Default: /api
[--token=TOKEN] # Chef Compliance access token
[--refresh-token=REFRESH_TOKEN] # Chef Compliance refresh token

Log in to a Chef Compliance SERVER

The actual command will not work with --server:
inspec compliance login https://cad-chef-compliance --insecure --user=admin --token=

InSpec and Platform Version

12:32:40-rlupo~/profiles$ inspec version
0.29.0

12:33:53-rlupo~/profiles$ inspec detect

== Operating System Details

Name: mac_os_x
Family: darwin
Release: 10.11.6
Arch: x86_64

Replication Case

Tell us what steps to take to replicate your problem. See How to create a Minimal, Complete, and Verifiable example
for information on how to create a good replication case.

Possible Solutions

If you have already ideas how to solve the issue, add them here.

Stacktrace

inspec compliance login --server=https://cad-chef-compliance --insecure --user=admin --token=
ERROR: "inspec login" was called with no arguments
Usage: "inspec login SERVER"

Please include the stacktrace output or link to a gist of it, if there is one.

@chris-rock chris-rock added Chef Compliance Type: Bug Feature not working as expected labels Aug 10, 2016
@chris-rock
Copy link
Contributor

Verified, thanks for highlighting @ricardolupo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: CLI: compliance Type: Bug Feature not working as expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants