Skip to content

Commit

Permalink
PAPP-32450 Vault path bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
splunk-jessica committed Nov 28, 2023
1 parent e5597ac commit 411b3b4
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 411b3b4

Please sign in to comment.