Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Created attachment 950183[details]
Updated scrit
Description of problem:
running: spacewalk-export --entities users,repositories,channels
fails with:
INFO: Processing users...
INFO: Processing repositories...
INFO: Processing channels...
File "/usr/bin/spacewalk-export-channels", line 195
epoch = pkg['epoch'] if pkg['epoch'] is not None else '0'
^
SyntaxError: invalid syntax
How reproducible:
Steps to Reproduce:
1. on sat 5.6 server run spacewalk-export with all variables
2.
3.
Actual results:
File "/usr/bin/spacewalk-export-channels", line 195
epoch = pkg['epoch'] if pkg['epoch'] is not None else '0'
^
SyntaxError: invalid syntax
Expected results:
For export to run correctly and export everything
The customer I am working with has fixed the script and the updated one that runs is attached to this bz.
Comment 1RHEL Program Management
2014-10-24 04:02:54 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.
Hello Chris,
you didn't fill what version of spacewalk-utils the customer uses.
I suspect, he runs Satellite 5.6 on RHEL5 and uses spacewalk-utils < 2.0.2-20.
It that's true, look at Bug 1140593. The issue has already been fixed and the updated spacewalk-utils package is available in the Satellite 5.6 channel.
Closing as duplicate.
*** This bug has been marked as a duplicate of bug 1140593 ***
Created attachment 950183 [details] Updated scrit Description of problem: running: spacewalk-export --entities users,repositories,channels fails with: INFO: Processing users... INFO: Processing repositories... INFO: Processing channels... File "/usr/bin/spacewalk-export-channels", line 195 epoch = pkg['epoch'] if pkg['epoch'] is not None else '0' ^ SyntaxError: invalid syntax How reproducible: Steps to Reproduce: 1. on sat 5.6 server run spacewalk-export with all variables 2. 3. Actual results: File "/usr/bin/spacewalk-export-channels", line 195 epoch = pkg['epoch'] if pkg['epoch'] is not None else '0' ^ SyntaxError: invalid syntax Expected results: For export to run correctly and export everything The customer I am working with has fixed the script and the updated one that runs is attached to this bz.