Skip to content

Conversation

@sivakasi-cisco
Copy link
Collaborator

No description provided.

- Fixed galaxy.yml license format (string to array)
- Replaced deprecated include with include_tasks
- Removed trailing spaces from all YAML files
- Converted truthy values (yes/no to true/false)
- Added space after # in comments
- Fixed sanity ignore files (removed invalid patterns)
- Added missing task names (179 files)
- Added FQCN prefix to builtin modules
- Fixed free-form set_fact statements
- Applied automated YAML formatting fixes
  1. Schema Violations
    - Replaced deprecated include with ansible.builtin.include_tasks
    - Fixed old-style include directives
  2. Naming Violations
    - Capitalized task names that started with lowercase letters
    - Added names to plays and tasks that were missing them
    - Fixed naming issues
  3. YAML Truthy Violations
    - Converted True/False to lowercase true/false
  4. Indentation Violations
    - Corrected wrong indentation
    - Fixed expected vs found indentation mismatches
  5. YAML Formatting Issues
    - Fixed trailing spaces
    - Removed excessive empty lines
    - Corrected colon spacing
    - Fixed bracket spacing
  6. FQCN Violations
    - Added ansible.builtin prefix to core module calls
    - Applied to include_tasks, set_fact, debug, etc.
  7. Module Docstring YAML Errors
    - Fixed syntax errors
    - Removed excess blank lines in documentation strings
    - Corrected YAML formatting in EXAMPLES sections
  8. Miscellaneous Fixes
    - Fixed no-free-form violations in set_fact calls
    - Corrected var-naming pattern
    - Fixed jinja2 spacing
- Fixed playbooks/roles/dcnm_inventory/dcnm_tests.yml (duplicate name key)
- Fixed dcnm_bootflash tests (filepath list indentation, set_fact indentation, assert indentation)
- Fixed dcnm_image_policy_query.yaml (assert that: block indentation)

Reduced load-failure errors from 127 to 122.
- Fixed playbooks/roles/dcnm_inventory/dcnm_tests.yml (duplicate name key, list format)
- Fixed dcnm_bootflash tests (3 files: filepath indentation, set_fact indentation, assert blocks)
- Fixed dcnm_image_policy_query.yaml (partial: assert that: block indentation)
- Restored dcnm_service_node/tasks/main.yaml (45 lines of version detection logic)

Reduced load-failure errors from 127 to 122.
@sivakasi-cisco sivakasi-cisco force-pushed the lint_changes branch 3 times, most recently from 536e9d0 to e92b035 Compare November 14, 2025 17:54
…ert blocks, and duplicate asserts

- Fixed GitHub workflow indentation (7 errors)
- Fixed 31 files with list item indentation issues
- Fixed 72 files with inline 'that:' after 'assert:'
- Fixed 39 files with malformed assert blocks
- Fixed 39 files with duplicate assert declarations
- Fixed 41 files with tasks wrongly nested under assert blocks
- Manually fixed 7 files (dcnm_image_upgrade, dcnm_inventory, dcnm_links)
- Created 6 automation scripts for systematic fixes
- Progress: Fixed ~200+ errors out of 361 total
- Fixed 22 files with inconsistent assert condition list indentation
- Created fix_assert_condition_indent.py script
- Conditions in assert blocks now have consistent indentation throughout
- Fixes 'did not find expected key' errors in dcnm_vrf, dcnm_service_node, and module_integration tests
- Progress: dcnm_vrf errors reduced from 6 to 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant