apache: Fix failure during app update

- During application update, if the last_updated_version is not provided for the
WebServer component, app's update to next version fails.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2023-06-05 20:30:18 -04:00
1 parent a35c320ebd
commit 5af2d44f83
2 files changed
+9 -1

No files matched your search

+1 -1
View File
@@ -44,7 +44,7 @@ class Webserver(app.LeaderComponent):
self.kind = kind
self.urls = urls or []
self.expect_redirects = expect_redirects
self.last_updated_version = last_updated_version
self.last_updated_version = last_updated_version or 0
def is_enabled(self):
"""Return whether the Apache configuration is enabled."""