Skip to content

Commit

Permalink
fix: update playbook spec schema
Browse files Browse the repository at this point in the history
  • Loading branch information
adityathebe committed Dec 19, 2024
1 parent 09aca0a commit 1a68da2
Show file tree
Hide file tree
Showing 3 changed files with 1,011 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ migrate-test: hack/migrate/go.mod
cd hack/migrate && go run ./main.go

cp-playbook-schema:
cp ../incident-commander/config/schemas/playbook-spec.schema.json schema/
cp ../mission-control/config/schemas/playbook-spec.schema.json schema/

fmt_json:
ls fixtures/expectations/*.json | while read -r jf; do \
Expand Down
2 changes: 1 addition & 1 deletion context/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ func (k Context) WithSubject(subject string) Context {

func (k Context) Subject() string {
subject := k.Value("rbac-subject")
if subject != "" {
if subject != nil {
return subject.(string)
}

Expand Down
Loading

0 comments on commit 1a68da2

Please sign in to comment.