Skip to content

Commit

Permalink
Update github runner to use python 3
Browse files Browse the repository at this point in the history
Signed-off-by: Ronan Abhamon <[email protected]>
  • Loading branch information
Wescoeur committed Aug 1, 2023
1 parent ee50659 commit da118c8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 23 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Set up Python 2.7
uses: actions/setup-python@v2
- name: Set up Python 3
uses: actions/setup-python@v4
with:
python-version: '2.7'
python-version: '3.10'

- name: Install dependencies
run: |
Expand Down
4 changes: 2 additions & 2 deletions dev_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
mock==1.0.1
xenapi
coverage
astroid==1.4.9
pylint==1.5
astroid
pylint==2.12.2
bitarray
monotonic
18 changes: 0 additions & 18 deletions drivers/srmetadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,24 +274,6 @@ def findMetadataVDI(self):
raise xs_errors.XenError('MetadataError', \
opterr='%s' % str(e))

# update the SR information or one of the VDIs information
# the passed in map would have a key 'objtype', either sr or vdi.
# if the key is sr, the following might be passed in
# SR name-label
# SR name_description
# if the key is vdi, the following information per VDI may be passed in
# uuid - mandatory
# name-label
# name_description
# is_a_snapshot
# snapshot_of, if snapshot status is true
# snapshot time
# type: system, user or metadata etc
# vdi_type: raw or vhd
# read_only
# location
# managed
# metadata_of_pool
def updateMetadata(self, update_map={}):
util.SMlog("Updating metadata : %s" % update_map)

Expand Down

0 comments on commit da118c8

Please sign in to comment.