stratis-cli icon indicating copy to clipboard operation
stratis-cli copied to clipboard

Use dynamic build for Manager class

Open mulkieran opened this issue 2 years ago • 4 comments

Related #1033

mulkieran avatar Nov 27 '23 18:11 mulkieran

make_dyn_class should memo-ize the dynamically generated classes, and should take a list of keys.

mulkieran avatar Nov 27 '23 19:11 mulkieran

The invocations of make_dyn_class are too wordy. They should be super simple, just one arg which very closely resembles the class name. make_dyn_class should then interpret that one argument.

mulkieran avatar Nov 28 '23 14:11 mulkieran

Need to add into a test that invokes CreatePool.

mulkieran avatar Dec 04 '23 15:12 mulkieran

This is not the correct way to do this. It should really be possible to make dynamic self-generating classes, and that would require working with dbus-python-client-gen.

mulkieran avatar Dec 04 '23 20:12 mulkieran