This project is read-only.


Problem in UpdateConfigAction


When i want update config i cant use UpdateConfigAction  because it has bug.So i update the code:
Please change to it.
            int i = actionCounter++;
            var index = i.ToString().PadLeft(6, '0');
            if (!string.IsNullOrEmpty(action))
                actions.Add("Action-" + index, action);

            if (!string.IsNullOrEmpty(category))
                actions.Add("Cat-" + index, category);

            if (!string.IsNullOrEmpty(variable))
                actions.Add("Var-" + index, variable);

            if (!string.IsNullOrEmpty(value))
                actions.Add("Value-" + index, value);

            if (!string.IsNullOrEmpty(match))
                actions.Add("Match-" + index, match);
Closed Aug 6, 2014 at 11:50 AM by skrusty


Shahrooze wrote Mar 18, 2014 at 11:29 AM

Cat-000000: ami-test

000000 is should be 6 digit.

skrusty wrote Mar 18, 2014 at 1:36 PM

Could you please submit a patch using the git repo? pull down the latest version, make your change, commit and make a pull request.

Shahrooze wrote Mar 25, 2014 at 9:07 AM

Done.I forked and update

skrusty wrote Mar 25, 2014 at 1:37 PM

Thanks, but oddly I don't see any forks of the code? You forked it here on codeplex yeah?

skrusty wrote Mar 25, 2014 at 3:23 PM

You've submitted your patch to github, on a version of asternet that's a) old and b) has nothing to do with the official asternet project. Please use codeplex!