~landscape/landscape-client-charm/trunk

« back to all changes in this revision

Viewing changes to hooks/charmhelpers/core/fstab.py

  • Committer: 🤖 Landscape Builder
  • Author(s): Chad Smith
  • Date: 2017-03-03 23:19:24 UTC
  • mfrom: (62.1.4 landscape-client)
  • Revision ID: _landscape_builder-20170303231924-c0380jqvms8gi7cj
Merge add-apt-repository-retries [f=] [r=landscape-builder,ericsnowcurrently] [a=Chad Smith]
Sync charmhelpers for add_source retries to avoid hook errors on network timeouts.  Because of charmhelpers sync fetch._run_apt_command moved to fetch.ubuntu._run_apt_command and fetch has new dependency on osplatform

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
# Copyright 2014-2015 Canonical Limited.
5
5
#
6
 
# This file is part of charm-helpers.
7
 
#
8
 
# charm-helpers is free software: you can redistribute it and/or modify
9
 
# it under the terms of the GNU Lesser General Public License version 3 as
10
 
# published by the Free Software Foundation.
11
 
#
12
 
# charm-helpers is distributed in the hope that it will be useful,
13
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
 
# GNU Lesser General Public License for more details.
16
 
#
17
 
# You should have received a copy of the GNU Lesser General Public License
18
 
# along with charm-helpers.  If not, see <http://www.gnu.org/licenses/>.
 
6
# Licensed under the Apache License, Version 2.0 (the "License");
 
7
# you may not use this file except in compliance with the License.
 
8
# You may obtain a copy of the License at
 
9
#
 
10
#  http://www.apache.org/licenses/LICENSE-2.0
 
11
#
 
12
# Unless required by applicable law or agreed to in writing, software
 
13
# distributed under the License is distributed on an "AS IS" BASIS,
 
14
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
15
# See the License for the specific language governing permissions and
 
16
# limitations under the License.
19
17
 
20
18
import io
21
19
import os