Message ID | 20180724073342.5738-24-jiyin@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [01/24] pynfs: python3 support plan: print -> print() | expand |
diff --git a/nfs4.1/config.py b/nfs4.1/config.py index b4a45d7..8779fe1 100644 --- a/nfs4.1/config.py +++ b/nfs4.1/config.py @@ -178,8 +178,9 @@ _invalid_ops = [ class OpsConfigServer(object): __metaclass__ = MetaConfig value = ['ERROR', 0, 0] # Note must have value == _opline(value) - attrs = [ConfigLine(name.lower()[3:], value, "Generic comment", _opline) - for name in nfs_opnum4.values()] + attrs = (lambda value=value: [ConfigLine(name.lower()[3:], value, "Generic comment", _opline) + for name in nfs_opnum4.values()])() + class Actions(object): __metaclass__ = MetaConfig