Commit 651e2ce8 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Compute:

- removed unneeded sleep method
parent 756da240
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import logging, random, time
import logging
from typing import Dict, Optional, Union
from flask import request
from flask.json import jsonify
@@ -152,7 +152,6 @@ def process_list_site_network_access(
            msg = 'Something went wrong Updating VPN {:s}'
            LOGGER.exception(msg.format(grpc_message_to_json_string(sna_request)))
            errors.append({'error': str(e)})
        time.sleep(random.random() / 10.0)

    response = jsonify(errors)
    response.status_code = HTTP_NOCONTENT if len(errors) == 0 else HTTP_SERVERERROR