# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
--from charms.layer.caas_base import pod_spec_set
--from charms.reactive import endpoint_from_flag
--from charms.reactive import when, when_not, hook
--from charms.reactive.flags import set_flag, clear_flag
++import logging
++import yaml
++
from charmhelpers.core.hookenv import (
log,
metadata,
config,
)
from charms import layer
--import yaml
- import logging
++from charms.layer.caas_base import pod_spec_set
++from charms.reactive import endpoint_from_flag
++from charms.reactive import when, when_not, hook
++from charms.reactive.flags import set_flag, clear_flag
++
+
+logger = logging.getLogger(__name__)
+
@hook("upgrade-charm")
@when("leadership.is_leader")
# See the License for the specific language governing permissions and
# limitations under the License.
--import sys
--import logging
import base64
--
--sys.path.append("lib")
++from glob import glob
++import logging
++from pathlib import Path
++from string import Template
++import sys
from ops.charm import CharmBase
from ops.framework import StoredState, Object
WaitingStatus,
)
--from glob import glob
--from pathlib import Path
--from string import Template
++
++sys.path.append("lib")
++
logger = logging.getLogger(__name__)
},
}
)
+
+ logger.debug(files)
++
spec = {
"version": 2,
"containers": [
# See the License for the specific language governing permissions and
# limitations under the License.
--import sys
++from glob import glob
import logging
--
--sys.path.append("lib")
++from pathlib import Path
++from string import Template
++import sys
from ops.charm import CharmBase
from ops.framework import StoredState, Object
WaitingStatus,
)
--from glob import glob
--from pathlib import Path
--from string import Template
++
++sys.path.append("lib")
++
logger = logging.getLogger(__name__)