Skip to content

Commit

Permalink
Implements: #1505
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Sep 18, 2023
1 parent 0bfd4ac commit 4429691
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions IM/tosca/Tosca.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import copy
import operator
import requests
import requests_cache
import json
import re
from toscaparser.nodetemplate import NodeTemplate
Expand Down Expand Up @@ -41,6 +42,7 @@ class Tosca:
logger = logging.getLogger('InfrastructureManager')

def __init__(self, yaml_str, verify=True):
requests_cache.install_cache('tosca_cache', cache_control=True)
Tosca.logger.debug("TOSCA: %s" % yaml_str)
self.yaml = yaml.safe_load(yaml_str)
if not verify:
Expand Down
3 changes: 2 additions & 1 deletion requirements-tests.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@ psutil
scar
nose
mock
coverage
coverage
requests-cache
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,5 @@
install_requires=["ansible >=2.4", "paramiko >= 1.14", "PyYAML", suds_pkg, sqlite_pkg, "cheroot",
"boto >= 2.29", "apache-libcloud >= 3.2.0", "RADL >= 1.1.5", "bottle", "netaddr",
"requests >= 2.19", "scp", "tosca-parser", 'defusedxml', 'urllib3>=1.23', 'hvac',
'psutil', 'scar']
'psutil', 'scar', 'requests-cache >= 1.0.0']
)

0 comments on commit 4429691

Please sign in to comment.