Completed
Pull Request — master (#2856)
by Lakshmi
11:30 queued 05:17
created

YamlStringToObject   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 4
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 2 1
1
import yaml
2
3
from st2actions.runners.pythonrunner import Action
4
5
6
class YamlStringToObject(Action):
7
8
    def run(self, yaml_str):
9
        return yaml.safe_load(yaml_str)
10