Fix type descriptions in RAPI documentation
authorMichael Hanselmann <hansmi@google.com>
Thu, 29 Nov 2012 11:23:50 +0000 (12:23 +0100)
committerMichael Hanselmann <hansmi@google.com>
Thu, 29 Nov 2012 11:33:59 +0000 (12:33 +0100)
commit16091a6e54918499e8c520d4dcb1d5968803a282
tree8b45f32e7ced2392f3a702d16ec247fbfd17aa87
parent853c570bad961987ffbff4c3fea482a70d3826f7
Fix type descriptions in RAPI documentation

This patch adds descriptors to the “_CheckCIDR*” functions in opcodes
and improves the descriptions generated by “ht.TInstanceOf”, thereby
indirectly fixing bad type descriptions in the RAPI documentation.

Before this patch:
- (String and (<function _CheckCIDRAddrNotation at 0x2f…>))
- (Instance of (<class 'ganeti.opcodes.OpInstanceCreate'>))

After this patch:
- (String and (IPv4 address))
- (Instance of (ganeti.opcodes.OpInstanceCreate))

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Helga Velroyen <helgav@google.com>
lib/ht.py
lib/opcodes.py
test/ganeti.ht_unittest.py