#1713 cli: fix typo in edit-user cmd
Merged 4 years ago by tkopecek. Opened 4 years ago by julian8628.
julian8628/koji edit-user-fix2  into  master

file modified
+1 -1
@@ -2083,7 +2083,7 @@ 

      princ_mappings = []

      for p in options.edit_krb:

          old, new = p.split('=', 1)

-         princ_mappings.append({'old': arg_filter(old), 'new': arg_filter(old)})

+         princ_mappings.append({'old': arg_filter(old), 'new': arg_filter(new)})

      for a in options.add_krb:

          princ_mappings.append({'old': None, 'new': arg_filter(a)})

      for r in options.remove_krb:

@@ -43,7 +43,7 @@ 

          # Finally, assert that things were called as we expected.

          activate_session_mock.assert_called_once_with(session, options)

          session.editUser.assert_called_once_with(user, rename,

-                                                  [{'new': 'oldkrb', 'old': 'oldkrb'},

+                                                  [{'new': 'newkrb', 'old': 'oldkrb'},

                                                    {'new': 'addedkrb', 'old': None},

                                                    {'new': None, 'old': 'removedkrb'}])

          self.assertEqual(rv, None)