Skip to content

Commit f8898d3

Browse files
Spelling / wording / whitespace changes
No functional changes
1 parent 6978619 commit f8898d3

4 files changed

Lines changed: 5 additions & 6 deletions

File tree

comanage_scripts_utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@
88
import urllib.request
99
from ldap3 import Server, Connection, ALL, ALL_ATTRIBUTES, SAFE_SYNC
1010

11+
1112
MIN_TIMEOUT = 5
1213
MAX_TIMEOUT = 625
1314
TIMEOUTMULTIPLE = 5
1415

16+
1517
GET = "GET"
1618
PUT = "PUT"
1719
POST = "POST"
@@ -73,7 +75,7 @@ def call_api3(method, target, data, endpoint, authstr, **kw):
7375
currentTimeout *= TIMEOUTMULTIPLE
7476
else:
7577
sys.exit(
76-
f"Exception raised after maximum retrys and/or timeout {MAX_TIMEOUT} seconds reached. "
78+
f"Exception raised after maximum number of retries and/or timeout {MAX_TIMEOUT} seconds reached. "
7779
+ f"Exception reason: {exception.reason}.\n Request: {req.full_url}"
7880
)
7981

group_fixup.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ def show_group_identifiers(gid):
151151
print(' ** Identifier Ids to delete: %s' % ', '.join(ids_to_delete))
152152

153153

154-
155154
# fixup functions
156155

157156

@@ -242,4 +241,3 @@ def main(args):
242241
except (RuntimeError, urllib.error.HTTPError) as e:
243242
print(e, file=sys.stderr)
244243
sys.exit(1)
245-

osg-comanage-project-usermap.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,4 +173,3 @@ def main(args):
173173
except urllib.error.HTTPError as e:
174174
print(e, file=sys.stderr)
175175
sys.exit(1)
176-

project_group_setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,14 +194,14 @@ def add_missing_group_identifier(project, id_type, value):
194194
# If the group doesn't already have an id of this type...
195195
if utils.identifier_from_list(project["ID_List"], id_type) is None:
196196
utils.add_identifier_to_group(project["Gid"], id_type, value, options.endpoint, options.authstr)
197-
print(f'project {project["Gid"]}: aded id {value} of type {id_type}')
197+
print(f'project {project["Gid"]}: added id {value} of type {id_type}')
198198

199199

200200
def assign_identifiers_to_project(project, id_dict):
201201
for k, v in id_dict.items():
202202
# Add an identifier of type k and value v to this group, if it doesn't have them already
203203
add_missing_group_identifier(project, k, v)
204-
# Update the project object to incldue the new identifiers
204+
# Update the project object to include the new identifiers
205205
new_identifiers = utils.get_co_group_identifiers(project["Gid"], options.endpoint, options.authstr)["Identifiers"]
206206
project["ID_List"] = new_identifiers
207207

0 commit comments

Comments
 (0)