fix up string manipulation
This commit is contained in:
parent
ae4ed690f7
commit
fff85981b1
@ -1,3 +1,4 @@
|
|||||||
|
import re
|
||||||
|
|
||||||
def boolean_to_int(value: bool) -> int:
|
def boolean_to_int(value: bool) -> int:
|
||||||
if value:
|
if value:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import logging, json, re
|
import logging, json
|
||||||
|
|
||||||
from helpers import aws_helper, tar_helper, common_helper
|
from helpers import aws_helper, tar_helper, common_helper
|
||||||
|
|
||||||
@ -21,6 +21,6 @@ class Base:
|
|||||||
# get attributes file and convert to dict
|
# get attributes file and convert to dict
|
||||||
attributes = json.loads(
|
attributes = json.loads(
|
||||||
tar_helper.extract_file_from_tar(
|
tar_helper.extract_file_from_tar(
|
||||||
self.tar, f'{camel_to_snake(self.ACTION)}_attributes.json').read())
|
self.tar, f'{common_helper.camel_to_snake(self.ACTION)}_attributes.json').read())
|
||||||
|
|
||||||
return attributes
|
return attributes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user