# pylint: disable=unused-argument
from charms.reactive import when, when_not
from charmhelpers.core import hookenv


@when('hadoop.installed')
@when_not('resourcemanager.related')
def blocked():
    hookenv.status_set('blocked', 'Waiting for relation to ResourceManager')


@when('hadoop.installed', 'resourcemanager.related')
@when_not('resourcemanager.spec.mismatch', 'resourcemanager.ready')
def waiting(resourcemanager):
    hookenv.status_set('waiting', 'Waiting for ResourceManager')


@when('nodemanager.started')
def ready(resourcemanager):
    hookenv.status_set('active', 'Ready')

@@ -524,31 +524,16 @@
 f ready(
-resourcemanager
 ):%0A    h

Remove incorrect argument