fix: update ip address in cache
All checks were successful
Build and Push Docker Image / Build And Push Docker Image (push) Successful in 26s
All checks were successful
Build and Push Docker Image / Build And Push Docker Image (push) Successful in 26s
This commit is contained in:
@@ -47,7 +47,7 @@ fn update_and_get_cache(
|
||||
zone_id: &str,
|
||||
domain: &str,
|
||||
) -> Result<CloudflareDnsEntry, Error> {
|
||||
let result = match cache {
|
||||
let mut result = match cache {
|
||||
Some(entry) => entry,
|
||||
None => get_id_and_content_of_dns(token, zone_id, domain)?,
|
||||
};
|
||||
@@ -58,6 +58,7 @@ fn update_and_get_cache(
|
||||
info!("Not updating IP Address");
|
||||
} else {
|
||||
update_ip_address(token, zone_id, ¤t_ip_address, domain, &result.id)?;
|
||||
result.ip_address = current_ip_address;
|
||||
}
|
||||
|
||||
Ok(result)
|
||||
|
||||
Reference in New Issue
Block a user