diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-04-15 09:38:09 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-04-15 09:38:09 -0400 |
commit | 8112b7866f0f1e5c85e7f03af20d496bb93ef1d5 (patch) | |
tree | b57c0c8f92416e58832d93e80f9f4d7ba633fca1 | |
parent | cbfe566fde3f79bd3dc3ec01e859a25c4444ee7a (diff) | |
download | stasis-8112b7866f0f1e5c85e7f03af20d496bb93ef1d5.tar.gz |
Validate all deploy:artifactory sections. Previous behavior was incorrect.
-rw-r--r-- | src/deliverable.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/deliverable.c b/src/deliverable.c index a12c8fd..dbbaecb 100644 --- a/src/deliverable.c +++ b/src/deliverable.c @@ -440,9 +440,12 @@ void validate_delivery_ini(struct INIFILE *ini) { // yeah? } - if (ini_section_search(&ini, INI_SEARCH_BEGINS, "deploy:artifactory")) { - ini_has_key_required(ini, "deploy:artifactory", "files"); - ini_has_key_required(ini, "deploy:artifactory", "dest"); + for (size_t i = 0; i < ini->section_count; i++) { + struct INISection *section = ini->section[i]; + if (section && startswith(section->key, "deploy:artifactory")) { + ini_has_key_required(ini, section->key, "files"); + ini_has_key_required(ini, section->key, "dest"); + } } } |