]> git.apps.os.sepia.ceph.com Git - teuthology.git/commit
task/ssh_keys: fix invalid escape sequence '\w'
authorKyr Shatskyy <kyrylo.shatskyy@clyso.com>
Sun, 4 Aug 2024 22:46:19 +0000 (00:46 +0200)
committerKyr Shatskyy <kyrylo.shatskyy@clyso.com>
Sun, 4 Aug 2024 23:05:11 +0000 (01:05 +0200)
commit70d385ec4145805f429664dadd7ec839361dffe3
treed3b6af5b5015ad0ff483369697f4d2b7ba3286cb
parentea0043ea18ae74e105ff02419eeeaabca7dc0806
task/ssh_keys: fix invalid escape sequence '\w'

Fix syntax warning message:

    <unknown>:68: SyntaxWarning: invalid escape sequence '\w'
    teuthology/task/ssh_keys.py:57: SyntaxWarning: invalid escape sequence '\w'
      match = re.match('[\w-]+ {key} \S+@\S+'.format(key=re.escape(ssh_key)), line_to_test)
    teuthology/task/ssh_keys.py:68: SyntaxWarning: invalid escape sequence '\w'
      match = re.match('[\w-]+ \S+ {username}@\S+'.format(username=username), line_to_test)

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@clyso.com>
teuthology/task/ssh_keys.py