Skip to content

Commit

Permalink
allow owner field in app.yaml
Browse files Browse the repository at this point in the history
this makes it so app.yaml can process owner field in two ways,

In desdcending order of priority:
- via the `--owner` flag passed to the CLI
- via the `owner` field in the app.yaml
  • Loading branch information
ayys committed Mar 28, 2024
1 parent 63cab7d commit 8b36b74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cli/src/commands/app/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ pub async fn deploy_app_verbose(
client: &WasmerClient,
mut opts: DeployAppOpts<'_>,
) -> Result<(DeployApp, DeployAppVersion), anyhow::Error> {
let owner = &opts.owner;
let owner = &opts.owner.or_else(|| opts.app.owner.clone());
let app = &opts.app;

let pretty_name = if let Some(owner) = &owner {
Expand Down

0 comments on commit 8b36b74

Please sign in to comment.