Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-3871

cfbs Traceback TypeError: validate_added_module() takes 1 positional argument but 2 were given

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Higher
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: N/A
    • Component/s: cfbs
    • Labels:
      None

      Description

      ❯ cfbs init
      Initialized - edit name and description cfbs.json
      To add your first module, type: cfbs add masterfiles
      ❯ cfbs add masterfiles
      Added module: masterfiles
      ❯ cfbs add https://github.com/nickanderson/cf_surfsara_lib
      Found 1 modules in 'https://github.com/nickanderson/cf_surfsara_lib':
        - surfsara-lib
      Do you want to add all 1 of them? [y/N] y
      Added module: autorun (Dependency of surfsara-lib)
      Traceback (most recent call last):
        File "/home/nickanderson/.local/bin/cfbs", line 8, in <module>
          sys.exit(main())
        File "/home/nickanderson/.local/lib/python3.9/site-packages/cfbs/main.py", line 141, in main
          return commands.add_command(
        File "/home/nickanderson/.local/lib/python3.9/site-packages/cfbs/commands.py", line 616, in add_command
          return _add_using_url(
        File "/home/nickanderson/.local/lib/python3.9/site-packages/cfbs/commands.py", line 598, in _add_using_url
          config.add(module, remote_config)
        File "/home/nickanderson/.local/lib/python3.9/site-packages/cfbs/index.py", line 286, in add
          self.add(dep, remote_config, module["name"])
        File "/home/nickanderson/.local/lib/python3.9/site-packages/cfbs/index.py", line 293, in add
          self.validate_added_module(module)
      TypeError: validate_added_module() takes 1 positional argument but 2 were given
      ❯ cfbs --version
      cfbs 1.2.0
      
      
      

      Added repo at this commit:
      https://github.com/nickanderson/cf_surfsara_lib/commit/4dbe349bb39f5b249906b396c2d1486658b5bc4a

        Attachments

          Activity

            People

            Assignee:
            olehermanse Ole Herman Schumacher Elgesem
            Reporter:
            a10042 Nick Anderson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: