~verterok/charms/xenial/conn-check/focal

« back to all changes in this revision

Viewing changes to hooks/charmhelpers/core/host_factory/centos.py

  • Committer: Guillermo Gonzalez
  • Date: 2023-06-29 16:33:24 UTC
  • Revision ID: guillermo.gonzalez@canonical.com-20230629163324-03vq3m9qtvu6f6or
update charmhelpers

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
import yum
3
3
import os
4
4
 
 
5
from charmhelpers.core.strutils import BasicStringComparator
 
6
 
 
7
 
 
8
class CompareHostReleases(BasicStringComparator):
 
9
    """Provide comparisons of Host releases.
 
10
 
 
11
    Use in the form of
 
12
 
 
13
    if CompareHostReleases(release) > 'trusty':
 
14
        # do something with mitaka
 
15
    """
 
16
 
 
17
    def __init__(self, item):
 
18
        raise NotImplementedError(
 
19
            "CompareHostReleases() is not implemented for CentOS")
 
20
 
5
21
 
6
22
def service_available(service_name):
7
23
    # """Determine whether a system service is available."""