GithubHelp home page GithubHelp logo

Comments (4)

ecleese avatar ecleese commented on July 30, 2024

Thanks for figuring this out. This fix worked for me to run multiple commands but breaks the facts module. If I run the example ciscosmb_gather_facts.yml playbook I get the following error with the above fix in place:

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: 'NoneType' object has no attribute 'groupdict'

If I revert the change back the ciscosmb_gather_facts.yml successfully runs. Any ideas why this would happen?

from community.ciscosmb.

qaxi avatar qaxi commented on July 30, 2024

... but breaks the facts module. If I run the example ciscosmb_gather_facts.yml playbook I get the following error with the above fix in place:

Is that problem CSB specific, or general ? I tested it on CSB a other SG an I have not souch issue.

from community.ciscosmb.

AndreiSucu avatar AndreiSucu commented on July 30, 2024

Thanks for figuring this out. This fix worked for me to run multiple commands but breaks the facts module. If I run the example ciscosmb_gather_facts.yml playbook I get the following error with the above fix in place:

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: 'NoneType' object has no attribute 'groupdict'

If I revert the change back the ciscosmb_gather_facts.yml successfully runs. Any ideas why this would happen?

I have tested this in my environment on a CBS 350-24TX Version: 3.1.1.7 and I did not notice any issues, the gather_facts task runs okay for all subsets with or without the change mentioned above.

Example task that works:

  • name: Collect only the config and default facts
    community.ciscosmb.facts:
    gather_subset:
    - config

Some off-topic info, there are substantial differences between the CBS 220 and 350, for example.
On 220 the gather_facts module does not work entirely due to the hardcoded commands built into the "facts.py" module.

Normal behavior of course, just wanted to point it out.

from community.ciscosmb.

ecleese avatar ecleese commented on July 30, 2024

We only use 350 series switches. I've only tested on two CBS350-24P-4G (fw v3.3.0.16) switches so far but both fail using the gather_facts module with the error I posted when this fix is applied. I'm not sure what could be different in my instance compared to yours and qaxi. I try and do some more testing next week.

from community.ciscosmb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.