Trying container

This commit is contained in:
David Murphy 2024-11-05 11:35:37 -07:00
parent ded5813ead
commit ef6d6b6d7e
No known key found for this signature in database
GPG key ID: 9D7724F37A7424D8
2 changed files with 7 additions and 3 deletions

View file

@ -26,7 +26,9 @@ on:
jobs:
Test:
name: ${{ matrix.instance }}
runs-on: ubuntu-20.04
## DGM runs-on: ubuntu-20.04
runs-on: ubuntu-latest
container: ubuntu-22.04
timeout-minutes: ${{ inputs.timeout }}
strategy:
max-parallel: 2

View file

@ -27,8 +27,10 @@ def run_salt_call(cmd):
cmd.append("--out=json")
result = subprocess.run(cmd, capture_output=True, text=True)
print(f"DGM run_salt_call, cmd '{cmd}', result '{result}'", flush=True)
json_data = json.loads(result.stdout)
return json_data["local"]
if result.stdout:
json_data = json.loads(result.stdout)
return json_data["local"]
return None
def test_ping():