marvin-zhao / pyang

Automatically exported from code.google.com/p/pyang
0 stars 0 forks source link

Error occurs while augmenting a node created by instantiation of a grouping #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When run pyang on the attached example the result is the following error:

Traceback (most recent call last):
  File "/usr/local/bin/pyang", line 190, in <module>
    run()
  File "/usr/local/bin/pyang", line 141, in run
    module = ctx.add_module(filename, text)
  File "/usr/local/lib/python2.6/dist-packages/pyang/__init__.py", line 64,
in add_module
    return self.add_parsed_module(module)
  File "/usr/local/lib/python2.6/dist-packages/pyang/__init__.py", line 92,
in add_parsed_module
    statements.validate_module(self, module)
  File "/usr/local/lib/python2.6/dist-packages/pyang/statements.py", line
79, in validate_module
    iterate(module, phase)
  File "/usr/local/lib/python2.6/dist-packages/pyang/statements.py", line
74, in iterate
    iterate(s, phase)
  File "/usr/local/lib/python2.6/dist-packages/pyang/statements.py", line
37, in iterate
    res = f(ctx, stmt)
  File "/usr/local/lib/python2.6/dist-packages/pyang/statements.py", line
174, in <lambda>
    ('expand_2', 'augment'):lambda ctx, s: v_expand_2_augment(ctx, s),
  File "/usr/local/lib/python2.6/dist-packages/pyang/statements.py", line
1316, in v_expand_2_augment
    if (stmt.i_target_node.i_config == False and
AttributeError: 'Statement' object has no attribute 'i_config'

Original issue reported on code.google.com by kur...@gmail.com on 18 Feb 2010 at 10:43

Attachments:

GoogleCodeExporter commented 9 years ago
Actually, this bug was fixed yesterday in subversion! 

Original comment by mbj4...@gmail.com on 18 Feb 2010 at 10:56