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

cf-remote crashes tying to list packages for version that does not exist

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: (None)
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: contrib: cf-remote
    • Labels:
      None

      Description

      I tried to list versions for 3.17.x which does not exist since we only do the 3.17.0 release. But, cf-remote shouldn't crash.

      > $ git log --oneline | head -n 1
      bf0858085 Merge pull request #4419 from olehermanse/not_kept
      
      > $ ~/bin/cf-remote --version 3.17.x list --edition enterprise
      Available releases: master, 3.17.0, 3.15.x, 3.15.3, 3.15.2, 3.15.1, 3.15.0, 3.15.0b1, 3.12.x, 3.12.6, 3.12.5, 3.12.4, 3.12.3, 3.12.2, 3.12.1, 3.12.0
      Using None:
      Traceback (most recent call last):
        File "/home/nickanderson/bin/cf-remote", line 11, in <module>
          main()
        File "/home/nickanderson/src/cfengine-core/contrib/cf-remote/cf_remote/main.py", line 381, in main
          exit_code = run_command_with_args(args.command, args)
        File "/home/nickanderson/src/cfengine-core/contrib/cf-remote/cf_remote/main.py", line 148, in run_command_with_args
          return commands.list_command(tags=args.tags, version=args.version, edition=args.edition)
        File "/home/nickanderson/src/cfengine-core/contrib/cf-remote/cf_remote/commands.py", line 258, in list_command
          return _iterate_over_packages(tags, version, edition, False)
        File "/home/nickanderson/src/cfengine-core/contrib/cf-remote/cf_remote/commands.py", line 244, in _iterate_over_packages
          artifacts = release.find(tags)
      AttributeError: 'NoneType' object has no attribute 'find'
      
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              a10042 Nick Anderson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Summary Panel