summaryrefslogtreecommitdiff
path: root/src/cli.rs
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2024-07-24 22:16:39 -0400
committerOwen Jacobson <owen@grimoire.ca>2024-07-25 19:20:21 -0400
commit2996d2b6268a320fafc512fcbee03a1b6182c521 (patch)
tree24b05dcc45dd3999af5fa63cc297930e8c1a0fa0 /src/cli.rs
parent310f78c2f4921089bfb90011a244b71df403129e (diff)
Normalize the target DNS name much earlier in the program.
Also clean up some naming.
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs3
1 files changed, 2 insertions, 1 deletions
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?;