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

ctrl-c during cfbs execution should not result in a traceback

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: (None)
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cfbs
    • Labels:
      None

      Description

      [root@hub cfbs]# cfbs remove lib-parse-local-users inventory-local-users && cfbs add https://github.com/nickanderson/cfengine-local_users && bs
      Removing module 'lib-parse-local-users'
      Removing module 'inventory-local-users'
      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] ^CTraceback (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 136, in main
          non_interactive=args.non_interactive,
        File "/usr/local/lib/python3.6/site-packages/cfbs/commands.py", line 559, in add_command
          to_add[0], to_add[1:], added_by, index_path, checksum, non_interactive
        File "/usr/local/lib/python3.6/site-packages/cfbs/commands.py", line 530, in _add_using_url
          answer = input("Do you want to add all %d of them? [y/N] " % (len(modules)))
      KeyboardInterrupt
      [root@hub cfbs]# cfbs --version
      cfbs 1.0.0
      
      

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated: