#2364 cli clone-tag - get srctag info with event
Merged 2 years ago by mikem. Opened 2 years ago by julian8628.
julian8628/koji issue/2101  into  master

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

          print(_("Cloning at event %(id)i (%(timestr)s)") % event)

  

      # store tags.

-     srctag = session.getTag(args[0])

+     srctag = session.getTag(args[0], event=event.get('id'))

      dsttag = session.getTag(args[1])

      if not srctag:

          parser.error(_("Unknown src-tag: %s" % args[0]))

@@ -211,7 +211,7 @@ 

          handle_clone_tag(self.options, self.session, args)

          self.activate_session.assert_called_once()

          self.session.assert_has_calls([call.hasPerm('admin'),

-                                        call.getTag('src-tag'),

+                                        call.getTag('src-tag', event=None),

                                         call.getTag('dst-tag'),

                                         call.createTag('dst-tag',

                                                        arches='arch1 arch2',
@@ -485,7 +485,7 @@ 

          handle_clone_tag(self.options, self.session, args)

          self.activate_session.assert_called_once()

          self.session.assert_has_calls([call.hasPerm('admin'),

-                                        call.getTag('src-tag'),

+                                        call.getTag('src-tag', event=None),

                                         call.getTag('dst-tag'),

                                         call.listPackages(event=None,

                                                           inherited=True,

So that tag config and extra honor event for clone-tag cmd

fixes: #2101

Metadata Update from @julian8628:
- Pull-request tagged with: testing-ready

2 years ago

Metadata Update from @jcupova:
- Pull-request tagged with: testing-done

2 years ago

Commit 43db33e fixes this pull-request

Pull-Request has been merged by mikem

2 years ago