From 2996d2b6268a320fafc512fcbee03a1b6182c521 Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Wed, 24 Jul 2024 22:16:39 -0400 Subject: Normalize the target DNS name much earlier in the program. Also clean up some naming. --- src/cli.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/cli.rs') diff --git a/src/cli.rs b/src/cli.rs index 0362b5e..340d537 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -7,6 +7,7 @@ use trust_dns_proto::rr::Name; use crate::apply::ApplyMode; use crate::aws_context::AwsContext; use crate::converge::named_asg_changes; +use crate::dns::absolute; /// Synchronize a DNS entry with an autoscaling group's running instances. /// @@ -48,7 +49,7 @@ impl Args { let changes = named_asg_changes( &aws_context, &args.autoscaling_group, - &args.dns_name, + &absolute(args.dns_name)?, args.dns_ttl, ) .await?; -- cgit v1.2.3