Skip to content

Commit a305e62

Browse files
committed
Manually merge PR158
git-svn-id: svn+ssh://svn.code.sf.net/p/migrid/code/trunk@6175 b75ad72c-e7d7-11dd-a971-7dbc132099af
1 parent 70d614d commit a305e62

File tree

6 files changed

+19
-17
lines changed

6 files changed

+19
-17
lines changed

mig/shared/functionality/mkdir.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# --- BEGIN_HEADER ---
55
#
66
# mkdir - create directory in user home
7-
# Copyright (C) 2003-2020 The MiG Project lead by Brian Vinter
7+
# Copyright (C) 2003-2024 The MiG Project lead by Brian Vinter
88
#
99
# This file is part of MiG.
1010
#
@@ -175,8 +175,8 @@ def main(client_id, user_arguments_dict, environ=None):
175175
# partial match:
176176
# ../*/* is technically allowed to match own files.
177177

178-
logger.warn('%s tried to %s %s restricted path! (%s)'
179-
% (client_id, op_name, abs_path, pattern))
178+
logger.warning('%s tried to %s %s restricted path! (%s)' %
179+
(client_id, op_name, abs_path, pattern))
180180
continue
181181
match.append(abs_path)
182182

mig/shared/functionality/rangefileaccess.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# --- BEGIN_HEADER ---
55
#
66
# rangefileaccess - read or write byte range inside file
7-
# Copyright (C) 2003-2021 The MiG Project lead by Brian Vinter
7+
# Copyright (C) 2003-2024 The MiG Project lead by Brian Vinter
88
#
99
# This file is part of MiG.
1010
#
@@ -363,8 +363,8 @@ def main(client_id, user_arguments_dict, environ=None):
363363
# partial match:
364364
# ../*/* is technically allowed to match own files.
365365

366-
logger.warn('%s tried to %s %s restricted path! (%s)'
367-
% (client_id, op_name, abs_path, pattern))
366+
logger.warning('%s tried to %s %s restricted path! (%s)' %
367+
(client_id, op_name, abs_path, pattern))
368368
continue
369369
match.append(abs_path)
370370

mig/shared/map.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# map.py - Collection of map related functions
55
#
6-
# Copyright (C) 2003-2019 The MiG Project lead by Brian Vinter
6+
# Copyright (C) 2003-2024 The MiG Project lead by Brian Vinter
77
#
88
# This file is part of MiG.
99
#
@@ -22,10 +22,12 @@
2222
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
2323

2424
"""A shared collection of map helper functions"""
25+
2526
from __future__ import absolute_import
2627

27-
import os
2828
import fcntl
29+
import os
30+
2931
from mig.shared.serial import load
3032

3133

@@ -50,7 +52,7 @@ def load_system_map(configuration, kind, do_lock):
5052
map_stamp = os.path.getmtime(map_path)
5153

5254
except IOError:
53-
configuration.logger.warn("No %s map to load" % kind)
55+
configuration.logger.warning("No %s map to load" % kind)
5456
entity_map = {}
5557
map_stamp = -1
5658
if do_lock:

mig/shared/pwcrypto.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#
66
#
77
# pwcrypto - helpers for password and crypto including for encryption and hashing
8-
# Copyright (C) 2003-2023 The MiG Project lead by Brian Vinter
8+
# Copyright (C) 2003-2024 The MiG Project lead by Brian Vinter
99
#
1010
# This file is part of MiG.
1111
#
@@ -414,7 +414,7 @@ def _aesgcm_aad_helper(prefix, date_format=AAD_DEFAULT_STAMP, size=32):
414414
using '%Y%m%d%H'.
415415
"""
416416
crypt_counter = datetime.datetime.now().strftime(date_format)
417-
val = b' '*size + b'%s' % prefix
417+
val = b' ' * size + b'%s' % prefix
418418
val += b'%s' % crypt_counter
419419
return val[-size:]
420420

@@ -690,8 +690,8 @@ def verify_reset_token(configuration, user_dict, token, auth_type,
690690
try:
691691
assure_reset_supported(configuration, user_dict, auth_type)
692692
except ValueError as vae:
693-
_logger.warn("verify %s reset token %s failed: %s" % (auth_type, token,
694-
vae))
693+
_logger.warning("verify %s reset token %s failed: %s" %
694+
(auth_type, token, vae))
695695
return False
696696

697697
token_stamp, token_hash = parse_reset_token(configuration, token,

mig/shared/vgridaccess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def load_entity_map(configuration, kind, do_lock, caching):
107107
_logger.info("after %s map load from %s" % (kind, map_path))
108108
map_stamp = os.path.getmtime(map_path)
109109
except IOError:
110-
_logger.warn("No %s map to load" % kind)
110+
_logger.warning("No %s map to load" % kind)
111111
entity_map = {}
112112
map_stamp = -1
113113
if do_lock:

mig/shared/workflows.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# workflows.py - Collection of workflows related functions
55
#
6-
# Copyright (C) 2003-2023 The MiG Project lead by Brian Vinter
6+
# Copyright (C) 2003-2024 The MiG Project lead by Brian Vinter
77
#
88
# This file is part of MiG.
99
#
@@ -3394,7 +3394,7 @@ def __create_task_parameter_file(configuration, vgrid, pattern,
33943394
except Exception as err:
33953395
msg = "Failed to create the task parameter " \
33963396
"file: %s, data: %s, err: %s" % (path, parameter_dict, err)
3397-
_logger.warn(msg)
3397+
_logger.warning(msg)
33983398
return (False, msg)
33993399

34003400
return (True, '')
@@ -3608,7 +3608,7 @@ def get_workflow_trigger(configuration, vgrid, rule_id=None, recursive=False):
36083608
if not status:
36093609
msg = "Failed to find triggers in vgrid '%s', err '%s'" % (vgrid,
36103610
triggers)
3611-
_logger.warn(msg)
3611+
_logger.warning(msg)
36123612
return (False, msg)
36133613

36143614
if rule_id:

0 commit comments

Comments
 (0)