From 9200f11ed8cfc0c5d4e512591c215633943d978c Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Wed, 28 Aug 2019 13:15:38 +0200 Subject: [PATCH] Skip unsupported provisioners. --- authority/provisioner/provisioner.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/authority/provisioner/provisioner.go b/authority/provisioner/provisioner.go index 711b0439..05d04031 100644 --- a/authority/provisioner/provisioner.go +++ b/authority/provisioner/provisioner.go @@ -150,7 +150,11 @@ func (l *List) UnmarshalJSON(data []byte) error { case "azure": p = &Azure{} default: - return errors.Errorf("provisioner type %s not supported", typ.Type) + // Skip unsupported files. When this method is specially used on + // clients, these might be compiled with a version that does not + // support a specific provisioner type, if we don't skip it we will + // force to re-compile the client to make it compatible. + continue } if err := json.Unmarshal(data, p); err != nil { return errors.Errorf("error unmarshaling provisioner")