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

cfbs status traceback

    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

      [root@hub cfbs]# cfbs --version
      cfbs 1.1.0
      [root@hub cfbs]# cfbs init
      Initialized - edit name and description cfbs.json
      To add your first module, type: cfbs add masterfiles
      [root@hub cfbs]# cfbs status
      Name:        Example
      Description: Example description
      File:        cfbs.json
      
      Modules:
      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 130, in main
          return commands.status_command()
        File "/usr/local/lib/python3.6/site-packages/cfbs/commands.py", line 138, in status_command
          max_length = longest_module_name()
        File "/usr/local/lib/python3.6/site-packages/cfbs/commands.py", line 779, in longest_module_name
          return max((len(m["name"]) for m in get_definition()["build"]))
      ValueError: max() arg is an empty sequence
      [root@hub cfbs]# cat cfbs.json 
      {
        "name": "Example",
        "type": "policy-set",
        "description": "Example description",
        "build": []
      }
      
      

        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: