Github user kwmonroe commented on a diff in the pull request:

    https://github.com/apache/bigtop/pull/197#discussion_r112990603
  
    --- Diff: 
bigtop-packages/src/charm/spark/layer-spark/actions/restart-spark-job-history-server
 ---
    @@ -15,22 +15,22 @@
     # limitations under the License.
     import sys
     
    +from charmhelpers.core import hookenv, host
    +from charms.reactive import is_state
     
    -try:
    -    from charmhelpers.core import host, hookenv, unitdata
    -    from jujubigdata import utils
    -    charm_ready = True
    -except ImportError:
    -    charm_ready = False
     
    -if not charm_ready:
    -    from subprocess import call
    -    call(['action-fail', 'Spark service not yet ready'])
    -    sys.exit(1)
    --- End diff --
    
    Thanks for the history.  I originally assumed this came in before 
`is_state` was a thing.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to