Skip to content

Commit

Permalink
Fixed path validation
Browse files Browse the repository at this point in the history
  • Loading branch information
bhillkeyfactor committed Feb 27, 2024
1 parent ed53fb9 commit 5c401ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PaloAlto/Validators.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public static (bool valid, JobResult result) ValidateStoreProperties(JobProperti
var errors = string.Empty;

//Check path Validity for either panorama shared location or firewall shared location or panorama level certificates
if (storePath != "/config/panorama" || storePath != "/config/shared" || !IsValidPanoramaFormat(storePath))
if (storePath != "/config/panorama" && storePath != "/config/shared" && !IsValidPanoramaFormat(storePath))
{
errors +=
"Path is invalid needs to be /config/panorama, /config/shared or in format of /config/devices/entry[@name='localhost.localdomain']/template/entry[@name='TemplateName']/config/shared.";
Expand Down

0 comments on commit 5c401ed

Please sign in to comment.