Skip to content

Error running "puppet resource iis_vdir" #17

@kupuguy

Description

@kupuguy

When I try to display the current iis_vdir resources on a windows server 2008 R2 system I get this error:

C:>puppet resource iis_vdir
Error: Could not run: undefined method `end_with?' for nil:NilClass

I think the problem is that the code is not correctly reading the iis_app property from the current settings.

As a workaround (but not a fix) I added this code:

  if (iis_app.nil?)
      self[:iis_app] = iis_app = name
  end

just after the assignment to 'name' in the validate code of type/iis_vdir.rb This suppresses the validation and allows the code to run though the iis_app value is still missing from the output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions