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

Traceback assert extras is not None

    XMLWordPrintable

    Details

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

      Description

      [root@hub cfbs]# rm cfbs.json ; cfbs init && cfbs add masterfiles && cfbs add https://github.com/nickanderson/cfengine-local_users && bs
      rm: cannot remove ‘cfbs.json’: No such file or directory
      Initialized - edit name and description cfbs.json
      To add your first module, type: cfbs add masterfiles
      Added module: masterfiles
      Found 4 modules in 'https://github.com/nickanderson/cfengine-local_users':
        - lib-parse-local-users
        - inventory-local-users
        - inventory-local-users-locked
        - inventory-local-users-password-empty
      Do you want to add all 4 of them? [y/N] y
      Added module: lib-parse-local-users
      Skipping already added module 'lib-parse-local-users'
      Added module: inventory-local-users
      Skipping already added module 'lib-parse-local-users'
      Added module: inventory-local-users-locked
      Skipping already added module 'lib-parse-local-users'
      Added module: inventory-local-users-password-empty
      
      Modules:
      001 masterfiles                          @ 5c7dc5b43088e259a94de4e5a9f17c0ce9781a0f (Downloaded)
      002 lib-parse-local-users                @ 39355b4d4e6d4085f8a5487c7ca05a5bdf5f18c9 (Downloaded)
      003 inventory-local-users                @ 39355b4d4e6d4085f8a5487c7ca05a5bdf5f18c9 (Downloaded)
      004 inventory-local-users-locked         @ 39355b4d4e6d4085f8a5487c7ca05a5bdf5f18c9 (Downloaded)
      005 inventory-local-users-password-empty @ 39355b4d4e6d4085f8a5487c7ca05a5bdf5f18c9 (Downloaded)
      
      Steps:
      001 masterfiles                          : run './autogen.sh'
      001 masterfiles                          : delete './autogen.sh'
      001 masterfiles                          : run './cfbs/cleanup.sh'
      001 masterfiles                          : delete './cfbs/cleanup.sh'
      001 masterfiles                          : copy './' 'masterfiles/'
      002 lib-parse-local-users                : copy './policy/parsed_etc_passwd_shadow.cf' 'masterfiles/services/local-users/'
      002 lib-parse-local-users                : json 'cfbs/lib-parse-local-users.def.json' 'masterfiles/def.json'
      003 inventory-local-users                : copy './policy/inventory_passwd_users_all.cf' 'masterfiles/services/local-users/'
      003 inventory-local-users                : json 'cfbs/inventory-local-users.def.json' 'masterfiles/def.json'
      004 inventory-local-users-locked         : copy './policy/inventory_passwd_users_locked.cf' 'masterfiles/services/local-users/'
      004 inventory-local-users-locked         : json 'cfbs/inventory-local-users-locked.def.json' 'masterfiles/def.json'
      005 inventory-local-users-password-empty : copy './policy/inventory_passwd_users_password_empty.cf' 'masterfiles/services/local-users/'
      005 inventory-local-users-password-empty : json 'cfbs/inventory-local-password-empty.def.json' 'masterfiles/def.json'
      Traceback (most recent call last):
        File "/usr/local/bin/cfbs", line 8, in <module>
          sys.exit(main())
        File "/usr/local/lib/python3.6/site-packages/cfbs/main.py", line 145, in main
          return commands.build_command()
        File "/usr/local/lib/python3.6/site-packages/cfbs/commands.py", line 948, in build_command
          build_steps()
        File "/usr/local/lib/python3.6/site-packages/cfbs/commands.py", line 930, in build_steps
          build_step(module, step, module_name_length)
        File "/usr/local/lib/python3.6/site-packages/cfbs/commands.py", line 871, in build_step
          assert extras is not None
      AssertionError
      

      https://github.com/nickanderson/cfengine-local_users/commit/39355b4d4e6d4085f8a5487c7ca05a5bdf5f18c9

        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: