mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
Trying container
This commit is contained in:
parent
ded5813ead
commit
ef6d6b6d7e
2 changed files with 7 additions and 3 deletions
4
.github/workflows/test-linux.yml
vendored
4
.github/workflows/test-linux.yml
vendored
|
@ -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
|
||||
|
|
|
@ -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():
|
||||
|
|
Loading…
Add table
Reference in a new issue