Bug #3150

require does not support ::class syntax

Added by R.I. Pienaar over 2 years ago. Updated about 2 years ago.

Status:Closed Start date:02/04/2010
Priority:Normal Due date:
Assignee:James Turnbull % Done:

0%

Category:RAL
Target version:0.25.5
Affected Puppet version:0.25.4 Branch:http://github.com/masterzen/puppet/tree/tickets/0.25.x/3150
Keywords:
Votes: 0

Description

The below sample code works:

class one {
        notify{"one": }
}

class two::one {
        include ::one

        notify{"two": }
}

include two::one

If we changed the include ::one to require ::one we get:

Could not find dependency Class[::one] for Class[two::one]

History

Updated by James Turnbull over 2 years ago

  • Category set to RAL
  • Status changed from Unreviewed to Investigating
  • Assignee set to Brice Figureau
  • Target version set to 2.6.0

Updated by Brice Figureau over 2 years ago

  • Status changed from Investigating to Ready For Checkin
  • Assignee changed from Brice Figureau to James Turnbull
  • Target version changed from 2.6.0 to 0.25.5
  • Branch set to http://github.com/masterzen/puppet/tree/tickets/0.25.x/3150

Hi,

The patch is available in my github repository, branch tickets/0.25.x/3150: http://github.com/masterzen/puppet/tree/tickets/0.25.x/3150

The patch has been accepted as is. Thanks,

Updated by James Turnbull over 2 years ago

  • Status changed from Ready For Checkin to Closed

Pushed in commit:5aa596c99cac2e578860dc236ec99b908840518d in branch 0.25.x

Updated by Markus Roberts about 2 years ago

Pushed to master in commit:c694c4d34fea8b45695222321930e64b8991887a Fix #3150 – require function doesn’t like ::class syntax

Also available in: Atom PDF