devserver: Deprecate --critical_update flag
We don't use this flag since we don't bring up customize devservers
anymore.
BUG=chromium:872441
TEST=devserver_integration_test.py
Change-Id: Ib828cb4e918c6f5bd3035a0f09210a616dc5d789
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/dev-util/+/2121396
Tested-by: Amin Hassani <ahassani@chromium.org>
Reviewed-by: Sanika Kulkarni <sanikak@chromium.org>
Reviewed-by: Allen Li <ayatane@chromium.org>
Commit-Queue: Amin Hassani <ahassani@chromium.org>
diff --git a/autoupdate.py b/autoupdate.py
index a87a099..6c7017c 100644
--- a/autoupdate.py
+++ b/autoupdate.py
@@ -64,7 +64,7 @@
_PAYLOAD_URL_PREFIX = '/static/'
def __init__(self, xbuddy, static_dir=None, payload_path=None,
- proxy_port=None, critical_update=False):
+ proxy_port=None):
"""Initializes the class.
Args:
@@ -73,13 +73,11 @@
payload_path: The path to pre-generated payload to serve.
proxy_port: The port of local proxy to tell client to connect to you
through.
- critical_update: Whether provisioned payload is critical.
"""
self.xbuddy = xbuddy
self.static_dir = static_dir
self.payload_path = payload_path
self.proxy_port = proxy_port
- self.critical_update = critical_update
def GetUpdateForLabel(self, label):
"""Given a label, get an update from the directory.
@@ -239,9 +237,6 @@
_Log('Failed to process an update request, but we will defer to '
'nebraska to respond with no-update. The error was %s', e)
- if self.critical_update:
- kwargs['critical_update'] = True
-
_Log('Responding to client to use url %s to get image', base_url)
nebraska_props = nebraska.NebraskaProperties(
update_payloads_address=base_url,