Skip to content

Commit

Permalink
Merge pull request #27 from splunk-soar-connectors/jhou/PAPP-32450
Browse files Browse the repository at this point in the history
PAPP-32450 Vault path bug fix
  • Loading branch information
splunk-jessica authored Nov 29, 2023
2 parents e5597ac + 411b3b4 commit 54ce5ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jira_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
from bs4 import BeautifulSoup, UnicodeDammit
from dateutil.parser import parse
from phantom.vault import Vault
from phantom_common import paths

from jira.client import JIRA
# THIS Connector imports
Expand Down Expand Up @@ -1679,7 +1680,8 @@ def _handle_attachment(self, attachment, container_id, artifact_list, action_res
if hasattr(Vault, 'get_vault_tmp_dir'):
tmp = tempfile.NamedTemporaryFile(dir=Vault.get_vault_tmp_dir(), delete=False)
else:
tmp = tempfile.NamedTemporaryFile(dir='/opt/phantom/vault/tmp/', delete=False)
local_dir = os.path.join(paths.PHANTOM_VAULT, "tmp")
tmp = tempfile.NamedTemporaryFile(dir=local_dir, delete=False)

ret_val = self._download_file(attachment.content, tmp.name)

Expand Down

0 comments on commit 54ce5ec

Please sign in to comment.