Skip to content

Spec label #53

@iliasl

Description

@iliasl

For some reason the label of a specification has a trailing number.

I try to specify a specification label
For instance.

.....

def mongo_singleton_capability(devices, capability, settings):
print ("Initializing capability: " + capability)
cap = mplane.model.Capability(label= "mobile_probe_hardware", when = "past ... now", verb ="query")
cap.add_metadata("System_version", "1.0")

....

Then during the running of the capability i print this label

def run(self, spec, check_interrupt):
   ......
    specType = spec.get_label()
    print("SPEC: ", specType)
   .....

I get a trailing "-0" at the capability label... : mobile_probe_hardware-0
is that normal ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions