This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# This script searches github links that points to repository assets with branch referenace | |
# and replaces it with the link that refers to the latest commit ID of the target branch at | |
# the time of execution. | |
# By doing so, we can secure the link to not to be outdated as in the content of branch reference | |
# can be updated as time goes by. | |
# | |
# Usage: python3 gh-permlink-filter.py < some-document.md > filtered-document.md | |
# | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/utils/storage.py b/lib/utils/storage.py | |
index e0328ff..15eec7e 100644 | |
--- a/lib/utils/storage.py | |
+++ b/lib/utils/storage.py | |
@@ -25,6 +25,7 @@ | |
import logging | |
from ganeti import constants | |
+from ganeti import errors | |