-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modified returned result not to use ansible state names
In preparation for writing integration tests, I realized that the returned results weren't very good. There wasn't a clean way to categorize the result sections by Ansible state (at least I couldn't think of one). 1. Deleted state detaches image policies from switches 2. Merged state attaches policies, stages and validates images, and upgrades switches. 3. Query state simply returns the current ISSU state of the switch(es). Given that the above don't really fix neatly into similar per-state actions, I removed Ansible state names from result section names and, instead, used names that describe what is being returned. So, we have the following subsections in both the "diff" and "response" sections: attach_policy detach_policy issu_status stage upgrade validate
- Loading branch information
1 parent
4dc4cfd
commit 06c673e
Showing
7 changed files
with
472 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.