Bug #4991

Recursive inheritance is allowed, but causes infinite recursion

Added by Nick Lewis over 1 year ago. Updated over 1 year ago.

Status:Accepted Start date:10/12/2010
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:language
Target version:2.7.x
Affected Puppet version:0.25.0 Branch:
Keywords:
Votes: 0

Description

$ cat test.pp
class foo inherits bar { }
class bar inherits foo { }
include foo

$ puppet apply test.pp
stack level too deep at /Users/nicklewis/puppet/puppet/test.pp:3 on node nick-lewiss-macbook-pro.local

This behavior is also present in 0.25 and also happens if a class inherits from itself.

History

Updated by Markus Roberts over 1 year ago

  • Status changed from Unreviewed to Accepted
  • Target version set to 2.7.x
  • Affected Puppet version changed from 2.6.2 to 0.25.0

Updated by Adrian Bridgett over 1 year ago

class test::foo inherits foo { }

also causes this FWIW (“inherits ::foo” is okay)

Also available in: Atom PDF