From f8b5f1dce635a4c1646c3736be8854227b4cbd66 Mon Sep 17 00:00:00 2001 From: Rudi Grinberg Date: Tue, 30 Oct 2012 16:31:14 -0400 Subject: [PATCH] update_file_system_mount is removed because it's not used --- python_apps/api_clients/api_client.py | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/python_apps/api_clients/api_client.py b/python_apps/api_clients/api_client.py index 610d7ef09..a1779667d 100644 --- a/python_apps/api_clients/api_client.py +++ b/python_apps/api_clients/api_client.py @@ -15,7 +15,6 @@ import json from urlparse import urlparse import base64 from configobj import ConfigObj -import string import traceback AIRTIME_VERSION = "2.2.0" @@ -611,29 +610,6 @@ class AirtimeApiClient(object): except Exception, e: logger.error("Exception: %s", e) - """ - This function updates status of mounted file system information on airtime - """ - def update_file_system_mount(self, added_dir, removed_dir): - logger = self.logger - try: - url = self.construct_url("update_fs_mount") - - added_data_string = string.join(added_dir, ',') - removed_data_string = string.join(removed_dir, ',') - - map = [("added_dir", added_data_string), ("removed_dir", removed_data_string)] - - data = urllib.urlencode(map) - - req = urllib2.Request(url, data) - response = self.get_response_from_server(req) - - logger.info("update file system mount: %s", json.loads(response)) - except Exception, e: - logger.error('Exception: %s', e) - logger.error("traceback: %s", traceback.format_exc()) - def get_bootstrap_info(self): """ Retrive infomations needed on bootstrap time """ return self.services.get_bootstrap_info()