Rename function for sanity
This commit is contained in:
@@ -66,7 +66,7 @@ class Client(threadedclient.WebSocketClient):
|
|||||||
def Loop(self):
|
def Loop(self):
|
||||||
self.daemon = True
|
self.daemon = True
|
||||||
self.connect()
|
self.connect()
|
||||||
self._OnNewManifest2()
|
self._UpdateManifest()
|
||||||
while True:
|
while True:
|
||||||
self._SendReport()
|
self._SendReport()
|
||||||
time.sleep(5.0)
|
time.sleep(5.0)
|
||||||
@@ -100,7 +100,7 @@ class Client(threadedclient.WebSocketClient):
|
|||||||
def _OnNewManifest(self, data):
|
def _OnNewManifest(self, data):
|
||||||
if data['image_type'] != self._config['image_type']:
|
if data['image_type'] != self._config['image_type']:
|
||||||
return
|
return
|
||||||
self._OnNewManifest2()
|
self._UpdateManifest()
|
||||||
|
|
||||||
def _GetFetcher(self):
|
def _GetFetcher(self):
|
||||||
return fetcher.Fetcher(
|
return fetcher.Fetcher(
|
||||||
@@ -117,7 +117,7 @@ class Client(threadedclient.WebSocketClient):
|
|||||||
FLAGS.boot_dir)
|
FLAGS.boot_dir)
|
||||||
update.Update()
|
update.Update()
|
||||||
|
|
||||||
def _OnNewManifest2(self):
|
def _UpdateManifest(self):
|
||||||
fetch = self._GetFetcher()
|
fetch = self._GetFetcher()
|
||||||
fetch.Fetch()
|
fetch.Fetch()
|
||||||
fetch.DeleteOldImages(skip={'%d.iso' % self._config['timestamp']})
|
fetch.DeleteOldImages(skip={'%d.iso' % self._config['timestamp']})
|
||||||
|
|||||||
Reference in New Issue
Block a user