-
Notifications
You must be signed in to change notification settings - Fork 928
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OX_REPO_NAME has wrong value #334
Comments
I am pretty sure this will be fixed in #326 |
Ah, big modification I see. I'll wait and test when it's merged. |
I checked it but now the OX_REPO_NAME is empty:
I don't have a big issue with it anymore since I don't think I will need that variable anymore, but it still might be a bug. |
@danilopopeye any thoughts? |
@ytti I'll try to have a look at this this week. 👍 Never really used the exec hook myself. |
@ytti can you assign this to me? I keep forgetting to fix it 😞 |
@roedie which version are you using? Testing here with e95cd26 and 0.14.3 I couldn't reproduce your problem. 😞 output:
default: git
git:
user: Oxidized Development
email: developer@oxidized.local
repo:
englab: "~/.config/oxidized/git-repos/englab.git"
telecom: "~/.config/oxidized/git-repos/telecom.git" OX_EVENT=post_store
OX_NODE_NAME=10.X.X.9
OX_NODE_FROM=
OX_NODE_MSG=
OX_NODE_GROUP=englab
OX_REPO_COMMITREF=06c8cef09f9fc6be53209735a89012ac9275ba30
OX_REPO_NAME=/home/dsgoncalves/.config/oxidized/git-repos/englab.git
OX_JOB_STATUS=success
OX_JOB_TIME=2.167455403 OX_EVENT=node_fail
OX_NODE_NAME=10.X.X.85
OX_NODE_FROM=
OX_NODE_MSG=
OX_NODE_GROUP=telecom
OX_REPO_COMMITREF=
OX_REPO_NAME=/home/dsgoncalves/.config/oxidized/git-repos/telecom.git
OX_JOB_STATUS=no_connection
OX_JOB_TIME=11.032248236 |
@danilopopeye I'm currently using 0.14.3. But, looking at my config again there might be something fishy going on. I have |
Can you specify the directory of the repository of all configs in the config. like what I showed in the last comment and report if it fixed? |
Closed due to #503 |
During some testing I dumped env to a file using a hook and noticed OX_REPO_NAME was wrong. In my config I configured:
for hosts that are not in a group. But, all of my devices are in a group, the default.git repo does not even exist, and I'm pretty sure this device's config is written in /home/oxidized/git/mydevices.git. Still, I get the following output:
I would expect OX_REPO_NAME to have /home/oxidized/git/mydevices.git as value.
The text was updated successfully, but these errors were encountered: