Skip to content

Commit 2fd3bcd

Browse files
committed
Just an experiment - do not merge
1 parent 337fbbd commit 2fd3bcd

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

.github/workflows/publish-docker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
version: latest
7070
endpoint: builders # self-hosted
7171
- name: Login to GHCR
72-
if: github.event_name != 'pull_request'
72+
if: github.event_name == 'pull_request'
7373
uses: docker/login-action@v3
7474
with:
7575
registry: ghcr.io
@@ -81,7 +81,7 @@ jobs:
8181
with:
8282
context: .
8383
platforms: linux/amd64,linux/arm64
84-
push: ${{ github.event_name != 'pull_request' }}
84+
push: ${{ github.event_name == 'pull_request' }}
8585
tags: ${{ steps.meta.outputs.tags }}
8686
labels: ${{ steps.meta.outputs.labels }}
8787
target: ${{ matrix.image.target }}

bmc/redfish.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -720,10 +720,7 @@ func (r *RedfishBMC) getSystemFromUri(ctx context.Context, systemURI string) (*r
720720
}); err != nil {
721721
return nil, fmt.Errorf("failed to wait for for server systems to be ready: %w", err)
722722
}
723-
if system.UUID != "" {
724-
return system, nil
725-
}
726-
return nil, fmt.Errorf("no system found for %v", systemURI)
723+
return system, nil
727724
}
728725

729726
func (r *RedfishBMC) WaitForServerPowerState(ctx context.Context, systemURI string, powerState redfish.PowerState) error {

0 commit comments

Comments
 (0)