Skip to content

Commit

Permalink
fix for exception while skipping system keyspace
Browse files Browse the repository at this point in the history
1)replace_key routine replacing all the matches of the skip_key
2)fix added to replace only the exact match

Change-Id: Id908f74d6f8e262d4b64c83fd01e7f98b14254fb
Closes-Bug: #1567067
  • Loading branch information
aswanikumar90 committed Apr 7, 2016
1 parent a62f6a5 commit 3b5263f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fabfile/tasks/backup_restore.py
Original file line number Diff line number Diff line change
Expand Up @@ -1041,6 +1041,6 @@ def ssh_key_gen():

def replace_key(text, skip_key):
for key in skip_key:
text = text.replace(key, "")
text=re.sub('\\b'+key+'\\b','',text)
return text
# end replace_kespace_for_custom_cassandra_snapshot

0 comments on commit 3b5263f

Please sign in to comment.