Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Commit

Permalink
Merge branch 'staging'
Browse files Browse the repository at this point in the history
  • Loading branch information
vktrrdk committed Nov 15, 2021
2 parents 9db6f67 + 8fecda8 commit 498ed47
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/blacked.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.5
- uses: actions/checkout@v2.4.0
- name: Checking out Branch
run: git checkout "${GITHUB_REF:11}"
- name: black
Expand All @@ -17,7 +17,7 @@ jobs:
- name: Create Pull Request
if: steps.git-check.outputs.modified == 'true'
id: cpr
uses: peter-evans/create-pull-request@v3.10.1
uses: peter-evans/create-pull-request@v3.11.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: fix(Linting):blacked code
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ jobs:
uses: rokroskar/[email protected]
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- uses: actions/checkout@v2.3.5
- uses: actions/checkout@v2.4.0
- run: docker build --no-cache .
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2.3.5
uses: actions/checkout@v2.4.0

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/master-protection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
uses: rokroskar/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2.3.5
- uses: actions/checkout@v2.4.0

- name: Check Tag
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
uses: rokroskar/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2.3.5
- uses: actions/checkout@v2.4.0
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- uses: actions/checkout@v2.3.5
- uses: actions/checkout@v2.4.0
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@master
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update_docker_tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
uses: rokroskar/[email protected]
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- uses: actions/checkout@v2.3.5
- uses: actions/checkout@v2.4.0
- run: |
python3 update_env_by_dockerfile.py Dockerfile.update .env.in
echo $?
Expand All @@ -24,7 +24,7 @@ jobs:
- name: Create Pull Request
if: steps.git-check.outputs.modified == 'true'
id: cpr
uses: peter-evans/create-pull-request@v3.10.1
uses: peter-evans/create-pull-request@v3.11.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: feat(Dockerfile):updated dependencies
Expand Down
6 changes: 4 additions & 2 deletions VirtualMachineService/VirtualMachineHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -2204,13 +2204,13 @@ def create_snapshot(self, openstack_id, name, elixir_id, base_tags, description)
LOG.exception("Create snapshot {0} error: {1}".format(openstack_id, e))

raise conflictException(Reason="409")
return None
except Exception:
LOG.exception("Instance {0} not found".format(openstack_id))
return
return None
try:
snapshot = self.conn.get_image_by_id(snapshot_munch["id"])
snapshot_id = snapshot["id"]
# todo check again
try:
image = self.conn.get_image(name_or_id=snapshot_id)
if description:
Expand All @@ -2222,12 +2222,14 @@ def create_snapshot(self, openstack_id, name, elixir_id, base_tags, description)
self.conn.image.add_tag(image=snapshot_id, tag=tag)
except Exception:
LOG.exception("Tag error catched")
return None
try:
self.conn.image.add_tag(image=snapshot_id, tag=elixir_id)
except Exception:
LOG.exception(
f"Could not add Tag {elixir_id} to Snapshot: {snapshot_id}"
)
return None

return snapshot_id
except Exception as e:
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
setuptools==58.4.0
setuptools==58.5.3
thrift==0.15.0
python-keystoneclient
openstacksdk ==0.59.0
deprecated == 1.2.13
Click==8.0.3
ansible==4.7.0
ansible==4.8.0
flake8==4.0.1
ruamel.yaml<0.18.0
paramiko==2.8.0
Expand Down

0 comments on commit 498ed47

Please sign in to comment.