mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
1494c44918
Usage of GlusterFS states did not change except the state 'created' was deprecated in favor of more descriptive name 'volume_present'. - Improved separation of functionality in the execution module from the states. Module functions now return booleans instead of varying strings. Parsing those strings in the states was very error-prone. In glusterfs.peer() function this problem was earlier solved by returning a dict containing both the exit value and output string of the gluster call. This could be a good idea, although without calling the gluster calls twice, and applied to other functios too. - Calls to gluster are now logged more verbosely, while a failing call no longer raises an immediate exception. - Improved checking and verbosity in the state level. Cleaned code a lot, removed some bugs and other odd behaviour. - Updated tests to match the changes. Refactored some test code to be more readable. Added assertions to test that some functions are not called when things are already in the desired state. Preferred changing behaviour of the mocked functions while proceeding instead of listing all of the return values first. - Replaced glusterfs.list_peers() with more informative peer_status() and deprecated the old name. The function now returns a dict with UUIDs as its keys. - glusterfs.info() can now be called without volume name. It always returns a dictionary. Use this function instead of status() in sates. - Functions glusterfs.delete() and glusterfs.create() were deprecated and renamed to delete_volume() and create_volume(). |
||
---|---|---|
.. | ||
beacons | ||
cli | ||
cloud | ||
config | ||
modules | ||
netapi | ||
output | ||
pillar | ||
renderers | ||
returners | ||
runners | ||
serializers | ||
states | ||
templates | ||
transport | ||
utils | ||
__init__.py | ||
auth_test.py | ||
client_test.py | ||
context_test.py | ||
crypt_test.py | ||
files_test.py | ||
highstateconf_test.py | ||
log_test.py | ||
minion_test.py | ||
payload_test.py | ||
pillar_test.py | ||
pydsl_test.py | ||
pyobjects_test.py | ||
simple.py | ||
spm_test.py | ||
stateconf_test.py | ||
template_test.py | ||
version_test.py |