Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pubsys: raise messages to 'warn' if AMI exists or repo doesn't #1708

Merged
merged 1 commit into from
Aug 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tools/pubsys/src/aws/ami/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use crate::aws::{client::build_client, parse_arch, region_from_string};
use crate::Args;
use futures::future::{join, lazy, ready, FutureExt};
use futures::stream::{self, StreamExt};
use log::{error, info, trace};
use log::{error, info, trace, warn};
use pubsys_config::{AwsConfig, InfraConfig};
use register::{get_ami_id, register_image, RegisteredIds};
use rusoto_core::{Region, RusotoError};
Expand Down Expand Up @@ -149,7 +149,7 @@ async fn _run(args: &Args, ami_args: &AmiArgs) -> Result<HashMap<String, Image>>
})?;

let (ids_of_image, already_registered) = if let Some(found_id) = maybe_id {
info!(
warn!(
"Found '{}' already registered in {}: {}",
ami_args.name,
base_region.name(),
Expand Down
4 changes: 2 additions & 2 deletions tools/pubsys/src/repo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pub(crate) mod validate_repo;
use crate::{friendly_version, Args};
use chrono::{DateTime, Utc};
use lazy_static::lazy_static;
use log::{debug, info, trace};
use log::{debug, info, trace, warn};
use parse_datetime::parse_datetime;
use pubsys_config::{InfraConfig, RepoConfig, RepoExpirationPolicy, SigningKeyConfig};
use semver::Version;
Expand Down Expand Up @@ -460,7 +460,7 @@ pub(crate) fn run(args: &Args, repo_args: &RepoArgs) -> Result<()> {
match load_editor_and_manifest(&repo_args.root_role_path, &metadata_url, &targets_url)? {
Some((editor, manifest)) => (editor, manifest),
None => {
info!(
warn!(
"Did not find repo at '{}', starting a new one",
metadata_url
);
Expand Down