summaryrefslogtreecommitdiff
path: root/src/cli.rs
diff options
context:
space:
mode:
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?;