Abstract more strings values into constants
Currently, the disk types are defined using constants in the code. Convert those into constants so that we can easily find them and check their usage. Note that we don't rename the values of the constants as they are used in the configuration file, and as such it's best to leave them as they are. Reviewed-by: imsnah
Showing
- lib/backend.py 1 addition, 1 deletionlib/backend.py
- lib/bdev.py 4 additions, 3 deletionslib/bdev.py
- lib/cmdlib.py 17 additions, 16 deletionslib/cmdlib.py
- lib/config.py 1 addition, 1 deletionlib/config.py
- lib/constants.py 5 additions, 0 deletionslib/constants.py
- lib/objects.py 8 additions, 8 deletionslib/objects.py
- scripts/gnt-instance 1 addition, 1 deletionscripts/gnt-instance
Loading
Please register or sign in to comment