Skip to content

Exception: NoMethodError: undefined method `times' for nil:NilClass #498

@suyash-binary

Description

@suyash-binary

Version:

❯ knife --version
Chef Infra Client: 15.7.32

Environment:

Linux 5.3.0-7642-generic (Pop! OS)

Scenario:

Trying to execute some command on windows server using knife winrm

Steps to Reproduce:

knife winrm "name:windows_test_node" "ipconfig" -x "Administrator" -P "password"

Expected Result:

To show output of ipconfig

Actual Result:

ERROR: knife encountered an unexpected error
This may be a bug in the 'winrm' knife command or plugin
Please collect the output of this command with the `-VVV` option before filing a bug report.
Exception: NoMethodError: undefined method `times' for nil:NilClass

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: UntriagedAn issue that has yet to be triaged.Type: BugDoes not work as expected.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions