Revision 7be6bfa2

b/snf-common/synnefo/lib/commissioning/specificator.py
652 652
            yield call_name, call_doc
653 653

  
654 654
    def get_doc(self, name):
655
        if name not in self.doc_strings:
655
        doc_strings = self.doc_strings
656
        if name not in doc_strings:
656 657
            m = "%s: Invalid method name '%s'" % (self.name, name)
657 658
            raise CanonifyException(m)
658 659

  
659
        return self.doc_strings[name]
660
        docstring = doc_strings[name]
661
        if not docstring:
662
            docstring = self.input_canonical(name).tostring()
663
        return docstring
660 664

  
661 665
    def call_attrs(self):
662 666
        for call_name, canonical in self.input_canonicals.iteritems():

Also available in: Unified diff