Skip to content

Commit

Permalink
Merge pull request #58 from jteheran/fix_retries
Browse files Browse the repository at this point in the history
Fixing error when timeout (incomplete format), increased wait_time
  • Loading branch information
DrDaveD authored Apr 9, 2019
2 parents 63b2c14 + 81a28ed commit e364db8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions osgpkitools/incommon_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
from rest_client import InCommonApiClient

MAX_RETRY_RETRIEVAL = 40
WAIT_RETRIEVAL= 5
WAIT_RETRIEVAL= 10
WAIT_APPROVAL = 30

CONFIG_TEXT = """[InCommon]
Expand Down Expand Up @@ -366,7 +366,7 @@ def main():
utils.atomic_write(cert_path, response_retrieve)
os.chmod(cert_path, 0644)
else:
print("Retrieval failure for %" % subj)
print("Retrieval failure for %s" % subj)
print("The certificate can be retrieved directly from the InCommon Cert Manager interface.")
print("CN %s, Self-enrollment Certificate ID (sslId): %s" % (subj, request[0]))

Expand Down
2 changes: 1 addition & 1 deletion osgpkitools/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

from ExceptionDefinitions import *

VERSION_NUMBER = "3.2.1"
VERSION_NUMBER = "3.2.2"
HELP_EMAIL = 'help@opensciencegrid.org'


Expand Down
7 changes: 5 additions & 2 deletions rpm/osg-pki-tools.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Summary: osg-pki-tools
Name: osg-pki-tools
Version: 3.2.1
Version: 3.2.2
Release: 1%{?dist}
Source: osg-pki-tools-%{version}.tar.gz
License: Apache 2.0
Expand Down Expand Up @@ -36,7 +36,10 @@ gzip -c man/osg-incommon-cert-request.1 >%{buildroot}%{_datadir}/man/man1/osg-in
%{_datadir}/man/man1/osg-incommon-cert-request*

%changelog
#- Improve formatting of osg-incommon-cert-request man page
* Tue Apr 9 2019 Jeny Teheran <jteheran@fnal.gov> - 3.2.2
- Fix format error for message when retrieval times out
- Increased the wait time between retrieval attempts
- Improve formatting of osg-incommon-cert-request man page

* Wed Mar 27 2019 Jeny Teheran <jteheran@fnal.gov> - 3.2.1
- Add man page for osg-incommon-cert-request
Expand Down

0 comments on commit e364db8

Please sign in to comment.